compare_product_membership
- jwst.associations.lib.diff.compare_product_membership(left, right, strict_expname=True)[source]
Compare membership between products.
If the membership is exactly the same, or other special conditions, no error is raised.
Otherwise, the following errors will be raised:
DuplicateMembersError: A member exists multiple times in the member list.MemberLengthDifferenceError: Number of members in the two products differ.MemberMismatchError: Members with the sameexpnamedo not share the other attributes.SubsetError: A member list is a subset of another member list.UnaccountedMembersError: Members exist in one association that do not exist in the other.
- Parameters:
- left, rightdict
Two, individual, association products to compare. Note that these are not associations, just products from associations.
- strict_expnamebool
Compare
expnameexactly. IfFalse,expnamemunging will occur. Seeexposure_name()for further details. Generally,Falsefor when comparing unrelated association lists, andTruewhen comparing related associations (those associations were generated together).
- Raises:
- jwst.associations.lib.diff.MultiDiffError
If there are differences. The message will contain all the differences.