Skip to content

Missing inheriting arguments of observer base class #430

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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