prune_duplicate_products

jwst.associations.lib.prune.prune_duplicate_products(asns)[source]

Remove duplicate products in favor of higher level versions.

The assumption is that there is only one product per association, before merging.

Parameters:
asnslist of Association

Associations to prune

Returns:
prunedlist of Association

Pruned list of associations