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:

Parameters:
left, rightdict

Two, individual, association products to compare. Note that these are not associations, just products from associations.

strict_expnamebool

Compare expname exactly. If False, expname munging will occur. See exposure_name() for further details. Generally, False for when comparing unrelated association lists, and True when 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.