You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that the is_association function of stdatamodels.jwst.datamodels.util checks if an object is an association based on the fact that it is a dict. However, the association created by jwst.associations.asn_from_list.asn_from_list by default is not a dict but jwst.associations.lib.rules_level3_base.DMS_Level3_Base. This would cause a problem when creating a ModelContainer from a DMS_Level3_Base association.
I found that the
is_association
function ofstdatamodels.jwst.datamodels.util
checks if an object is an association based on the fact that it is adict
. However, the association created byjwst.associations.asn_from_list.asn_from_list
by default is not adict
butjwst.associations.lib.rules_level3_base.DMS_Level3_Base
. This would cause a problem when creating a ModelContainer from aDMS_Level3_Base
association.stdatamodels/src/stdatamodels/jwst/datamodels/util.py
Line 387 in 49955c0
Here is the code to reproduce this problem.
But it works if bypassing the
is_association
check.The text was updated successfully, but these errors were encountered: