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.
Initialize a ProcessList.
- Parameters:
- items[item[, …]]
The list of items to process
- rules[Association[, …]]
List of rules to process the items against.
- work_overint
What the reprocessing should work on: -
ProcessList.RULES
: Only on the rules to create new associations -ProcessList.EXISTING
: Only existing associations -ProcessList.BOTH
: Compare to both existing and rules -ProcessList.NONSCIENCE
: Only on non-science items- only_on_matchbool
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.
- Returns:
- Tuple(Rule, …), int, bool
Tuple of: tuple of rule objects, integer and bool. Used as 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_listProcessList
The source process list to absorb.
- fullbool
Include the hash attributes
rules
,work_over
, andonly_on_match
.