prune
- jwst.associations.lib.prune.prune(asns)[source]
Remove duplicates and subset associations.
Situations where extraneous associations can occur are:
duplicate memberships
duplicate product names
Associations with different product names but same memberships arise when different levels of candidates gather the same membership, such as OBSERVATION vs. GROUP. Associations of the lower level candidate are preferred.
Associations with the same product name can occur in Level 2 when both an OBSERVATION candidate and a BACKGROUND candidate associations are created. The association that is a superset of members is the one chosen.
- Parameters:
- asnslist of
Association Associations to prune
- asnslist of
- Returns:
- prunedlist of
Association Pruned list of associations
- prunedlist of