AsnMixin_Lv2Special

class jwst.associations.lib.rules_level2_base.AsnMixin_Lv2Special[source]

Bases: object

Process special and non-science exposures as science.

Attributes:
original_exposure_typestr

The original exposure type of what is referred to as the “science” member

Attributes Summary

original_exposure_type

Methods Summary

get_exposure_type(item[, default])

Override to force exposure type to always be science.

Attributes Documentation

original_exposure_type = None

Methods Documentation

get_exposure_type(item, default='science')[source]

Override to force exposure type to always be science.

The only case where this should not happen is if the association already has its science, and the current item is an imprint. Leave that item as an imprint.

Parameters:
itemdict

The pool entry to determine the exposure type of

defaultstr or None

The default exposure type. If None, routine will raise LookupError.

Returns:
exposure_typestr

Always what is defined as default