DMS_Level3_Base

class jwst.associations.lib.rules_level3_base.DMS_Level3_Base(*args, **kwargs)[source]

Bases: DMSBaseMixin, Association

Basic class for DMS Level3 associations.

Attributes Summary

INVALID_VALUES

Attribute values that indicate the attribute is not specified.

current_product

Return the last product in the list.

dms_product_name

Define product name.

schema_file

sequences

Methods Summary

make_fixedslit_bkg()

Add a background to a MIR_lrs-fixedslit observation.

make_member(item)

Create a member from the item.

update_asn([item, member])

Update association meta information.

Attributes Documentation

INVALID_VALUES: tuple | None = (None, '', 'NULL', 'Null', 'null', '--', 'N', 'n', 'F', 'f', 'FALSE', 'false', 'False', 'N/A', 'n/a')

Attribute values that indicate the attribute is not specified.

current_product

Return the last product in the list.

Returns:
dict

The last product in the data list.

dms_product_name

Define product name.

Returns:
product_namestr

The product name

schema_file = PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/jwst-pipeline/conda/10095/lib/python3.11/site-packages/jwst/associations/lib/asn_schema_jw_level3.json')
sequences: defaultdict = {}

Methods Documentation

make_fixedslit_bkg()[source]

Add a background to a MIR_lrs-fixedslit observation.

Returns:
list[asn, …]

The list of associations.

make_member(item)[source]

Create a member from the item.

Parameters:
itemdict

The item to create member from.

Returns:
memberMember

The member.

update_asn(item=None, member=None)[source]

Update association meta information.

Parameters:
itemdict or None

Item to use as a source. If not given, item-specific information will be left unchanged.

memberMember or None

An association member to use as source. If not given, member-specific information will be update from current association/product membership.

Notes

If both item and member are given, information in member will take precedence.