ProcessList¶
- class jwst.associations.ProcessList(items=None, rules=None, work_over=ListCategory.BOTH, only_on_match=False, trigger_constraints=None, trigger_rules=None)[source]¶
Bases:
object
A Process list
- Parameters:
items ([item[, ...]]) – The list of items to process
rules ([Association[, ...]]) – List of rules to process the items against.
work_over (int) – What the reprocessing should work on: -
ProcessList.EXISTING
: Only existing associations -ProcessList.RULES
: Only on the rules to create new associations -ProcessList.BOTH
: Compare to both existing and rules -ProcessList.NONSCIENCE
: Only on non-science itemsonly_on_match (bool) – Only use this object if the overall condition is True.
trigger_constraints ([Constraint[,...]]) – The constraints that created the ProcessList
trigger_rules ([Association[,...]]) – The association rules that created the ProcessList
Attributes Summary
Create a unique hash
Methods Summary
update
(process_list[, full])Update with information from ProcessList
Attributes Documentation
- hash¶
Create a unique hash
Methods Documentation
- update(process_list, full=False)[source]¶
Update with information from ProcessList
Attributes from
process_list
are added to self’s attributes. Ifnot full
, the attributesrules
, ‘work_over`, andonly_on_match
are not taken.Note that if
full
, destructive action will occur with respect towork_over
andonly_on_match
.- Parameters:
process_list (ProcessList) – The source process list to absorb.
full (bool) – Include the hash attributes
rules
,work_over
, andonly_on_match
.