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_over (int) – 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_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

hash

Create a unique hash.

Methods Summary

update(process_list[, full])

Update with information from ProcessList.

Attributes Documentation

hash

Create a unique hash.

Returns:

Tuple of: tuple of rule objects, integer and bool. Used as a unique hash.

Return type:

Tuple(Rule, …), int, bool

Methods Documentation

update(process_list, full=False)[source]

Update with information from ProcessList.

Attributes from process_list are added to self’s attributes. If not full, the attributes rules, ‘work_over`, and only_on_match are not taken.

Note that if full, destructive action will occur with respect to work_over and only_on_match.

Parameters:
  • process_list (ProcessList) – The source process list to absorb.

  • full (bool) – Include the hash attributes rules, work_over, and only_on_match.