-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data model constructors should return object instance used in constructor if right type #51
Comments
Fixed in #52 |
dmggh
added a commit
to dmggh/roman_datamodels
that referenced
this issue
Dec 16, 2021
add Readthedocs badge to README
WilliamJamieson
added a commit
to WilliamJamieson/roman_datamodels
that referenced
this issue
Jul 6, 2023
Issue spacetelescope#51 and PR spacetelescope#52 indicate that we should be able to pass a model instance to a matching model's constructor, and then return exactly the same instance unmodified.
4 tasks
WilliamJamieson
added a commit
to WilliamJamieson/roman_datamodels
that referenced
this issue
Jul 7, 2023
Issue spacetelescope#51 and PR spacetelescope#52 indicate that we should be able to pass a model instance to a matching model's constructor, and then return exactly the same instance unmodified.
WilliamJamieson
added a commit
to WilliamJamieson/roman_datamodels
that referenced
this issue
Jul 7, 2023
Issue spacetelescope#51 and PR spacetelescope#52 indicate that we should be able to pass a model instance to a matching model's constructor, and then return exactly the same instance unmodified.
WilliamJamieson
added a commit
to WilliamJamieson/roman_datamodels
that referenced
this issue
Jul 7, 2023
Issue spacetelescope#51 and PR spacetelescope#52 indicate that we should be able to pass a model instance to a matching model's constructor, and then return exactly the same instance unmodified.
WilliamJamieson
added a commit
to WilliamJamieson/roman_datamodels
that referenced
this issue
Jul 7, 2023
Issue spacetelescope#51 and PR spacetelescope#52 indicate that we should be able to pass a model instance to a matching model's constructor, and then return exactly the same instance unmodified.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently if one supplies an existing instance of a datamodel (say RampModel) to one of the datamodel constructors (say RampModel), and the instance is the same type as the constructor, the constructor should return that instance. Currently it raises an error.
This may require some trickery to effectively replace self with the instance (I will have to brush up on this)
The text was updated successfully, but these errors were encountered: