Main

class jwst.associations.Main(args=None, pool=None)[source]

Bases: object

Generate Associations from an Association Pool

Parameters
  • args ([str, ...], or None) –

    The command line arguments. Can be one of

    • None: sys.argv is then used.

    • [str, ...]: A list of strings which create the command line with the similar structure as sys.argv

  • pool (None or AssociationPool) – If None, a pool file must be specified in the args. Otherwise, an AssociationPool

pool

The pool read in, or passed in through the parameter pool

Type

AssociationPool

rules

The rules used for association creation.

Type

AssociationRegistry

associations

The list of generated associations.

Type

[Association, …]

Notes

Refer to the Association Generator documentation for a full description.

Attributes Summary

orphaned

The pool of exposures that do not belong to any association.

Methods Summary

save([path, format, save_orphans])

Save the associations to disk.

Attributes Documentation

orphaned

The pool of exposures that do not belong to any association.

Methods Documentation

save(path='.', format='json', save_orphans=False)[source]

Save the associations to disk.

Parameters
  • path (str) – The path to save the associations to.

  • format (str) – The format of the associations

  • save_orphans (bool) – If true, save the orphans to an astropy.table.Table