Skip to content

Missing inheriting arguments of observer base class #430

@munechika-koyo

Description

@munechika-koyo

Hello,

I noticed that some imaging observer classes could not take arguments defined in base classes like Observer2D.
I mean:

PinholeCamera(
    (512, 512),
   min_wavelength=375  # <-- TypeError: __init__() got an unexpected keyword argument 'min_wavelength'
)

Therefore, How do you think of adding **kwargs parameters into such a imaging object's constructor arguments like:

cdef class PinholeCamera(Observer2D):
    def __init__(self, pixels, fov=None, sensitivity=None, frame_sampler=None, pipelines=None, parent=None, transform=None, name=None, **kwargs):

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions