sort_by_candidate
- jwst.associations.lib.product_utils.sort_by_candidate(asns)[source]
Sort associations by candidate.
- Parameters:
- asnslist of
Association List of associations.
- asnslist of
- Returns:
- sorted_by_candidatelist of
Association New list of the associations sorted.
- sorted_by_candidatelist of
Notes
The current definition of candidates allows strictly alphabetical sorting:
aXXXX > cXXXX > oXXX
If this changes, a comparison function will need be implemented.