match_item

jwst.associations.match_item(item, associations)[source]

Match item to a list of associations

Parameters:
  • item (dict) – The item to match to the associations.
  • associations ([association, ..]) – List of already existing associations. If the item matches any of these, it will be added to them.
Returns:

(associations, process_list)

associations: [association,…]

List of associations item belongs to. Empty if none match

process_list: [ProcessList, …]

List of process events.

Return type:

2-tuple where