jwst.associations Package

Association generator and rule definitions.

The association generator takes a list of items and an Association Pool, and it creates sub-lists of those items depending on each item’s attributes. The association rules define how the sub-lists are created.

Functions

generate(pool, rules[, version_id, finalize])

Generate associations in the pool according to the rules.

libpath()

Return the full path to the module library.

load_asn(serialized[, fmt, first, validate, ...])

Load an Association from a file or object.

Classes

Association([version_id])

Association Base Class.

AssociationError

Basic errors related to Associations.

AssociationNotAConstraintError

No matching constraint found.

AssociationNotValidError

Given data structure is not a valid association.

AssociationPool(*args, **kwargs)

Association Pool - built off an astropy table.

AssociationRegistry([definition_files, ...])

The available association rules to match against.

ListCategory(value)

The work_over categories for ProcessLists.

Main([args, pool])

Generate Associations from an Association Pool.

ProcessItem(obj)

Items to be processed.

ProcessList([items, rules, work_over, ...])

A Process list.

ProcessQueue

Make a deque iterable and mutable.

ProcessQueueSorted([init])

Sort ProcessItem based on work_over.

RegistryMarker()

Mark rules, callbacks, and modules for inclusion into a registry.

Class Inheritance Diagram

Inheritance diagram of jwst.associations.association.Association, jwst.associations.exceptions.AssociationError, jwst.associations.exceptions.AssociationNotAConstraintError, jwst.associations.exceptions.AssociationNotValidError, jwst.associations.pool.AssociationPool, jwst.associations.registry.AssociationRegistry, jwst.associations.lib.process_list.ListCategory, jwst.associations.main.Main, jwst.associations.lib.process_list.ProcessItem, jwst.associations.lib.process_list.ProcessList, jwst.associations.lib.process_list.ProcessQueue, jwst.associations.lib.process_list.ProcessQueueSorted, jwst.associations.registry.RegistryMarker