main

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

Command-line entrypoint for the association generator

Wrapper around Main.cli so that the return is either True or an exception.

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