Constraint_TargetAcq

class jwst.associations.lib.dms_base.Constraint_TargetAcq(*args, **kwargs)[source]

Bases: SimpleConstraint

Select on target acquisition exposures.

Parameters:

association (Association) – If specified, use the get_exposure_type method of the association rather than the utility version.

Initialize a new SimpleConstraint.

Parameters:
  • init (dict) – Dictionary where the key:value pairs define the following parameters.

  • sources (func(item) or None) – Function taking item as argument used to retrieve a value to check against. If None, the item itself is used as the value.

  • force_unique (bool) – If the constraint is satisfied, reset value to the value of the source.

  • test (function) –

    The test function for the constraint. Takes two arguments:

    • constraint

    • object to compare against.

    Returns a boolean. Default is SimpleConstraint.eq

  • reprocess_on_match (bool) – Reprocess the item if the constraint is satisfied.

  • reprocess_on_fail (bool) – Reprocess the item if the constraint is not satisfied.

  • work_over (ListCategory.[BOTH, EXISTING, RULES]) – The condition on which this constraint should operate.

  • reprocess_rules ([rule[,..]] or None) – List of rules to be applied to. If None, calling function will determine the ruleset. If empty, [], all rules will be used.