-
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
Incompatibility between roman_datamodels and stpipe attribute assignment #343
Comments
@schlafly Would you consider this a roman_datamodels bug? Is it planned to allow assignments using the "dotted" string, or perhaps should this cause an error (instead of silently creating a new key value pair in the |
Sorry, out of the office today, but yes, your example looks clear that
stpipe expects us to support this notation, so I agree with your sense that
we need to handle this case better.
…On Thu, Jun 27, 2024, 10:43 Brett Graham ***@***.***> wrote:
@schlafly <https://github.com/schlafly> Would you consider this a
roman_datamodels bug?
Is it planned to allow assignments using the "dotted" string, or perhaps
should this cause an error (instead of silently creating a new key value
pair in the _instance) and stpipe updated to not used an assignment with
a "dotted" string?
—
Reply to this email directly, view it on GitHub
<#343 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK2E4KUOYWIA6JJRWSPBU3ZJQXINAVCNFSM6AAAAABGPP2QYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJVGA2DSNZSGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There are additional factors that make the automatic skip setting in stpipe not work. Even if the attribute access is fixed most romancal steps do not define a @schlafly was it a design decision to not use I think the options for resolving this issue are either:
|
@ddavis-stsci will know the design decisions better than I. I doubt that this was a conscious decision, and so we could go ahead and add them. But I don't have a solution for Webb & Roman sharing class_aliases. |
I think that we should define class_alias for all the steps and take advantage of the stpipe infrastructure. |
See spacetelescope/stpipe#202 for a possible solution to resolving class_alias conflicts between jwst and romancal. |
If a step is skipped (by the
skip
attribute being set toTrue
before the step is called) stpipe will assign 'SKIPPED' to the model metadata:https://github.com/spacetelescope/stpipe/blob/d20b6429cafe0a4ca846fd43af7b6a61241e632c/src/stpipe/step.py#L484-L486
Including a call like the follow (for
tweakreg
for example):However this assignment does not set
model.meta.cal_step.tweakreg
(the expected metadata field) for roman datamodels.The text was updated successfully, but these errors were encountered: