API
Public API
jwst.associations.asn_from_list Module
Create an association from a list.
Functions
|
Create an association from a list. |
jwst.associations.asn_gather Module
Copy data that is listed in an association.
Functions
|
Copy members of an association from one location to another. |
jwst.associations.association Module
Classes
|
Association base class. |
Class Inheritance Diagram
jwst.associations.generator.generate Module
Functions
|
Generate associations in the pool according to the rules. |
jwst.associations.load_asn Module
Load an Association from a file or object.
Functions
|
Load an Association from a file or object. |
jwst.associations.main Module
Main entry for the association generator.
Classes
|
Generate Associations from an Association Pool. |
jwst.associations.mkpool Module
Tools for pool creation.
Functions
|
Create an association pool from a list of FITS files. |
jwst.associations.pool Module
Module to handle association pools.
Classes
|
Association pool that is built off an astropy table. |
jwst.associations.registry Module
Module to handle association registry and markers.
Classes
|
The available association rules to match against. |
Complete Developer API
jwst.associations.asn_edit Module
Association edit operations.
Functions
|
Add new filenames to association. |
|
Read the association file. |
|
Remove the named files from the association. |
|
Write the association out to disk. |
Classes
Generic association file warning. |
jwst.associations.association_io Module
Define the I/O methods for Level 3 associations.
Particularly, load and store associations as JSON.
Functions
|
Unserialize an association from JSON. |
|
Create JSON representation. |
Classes
|
JSON encoder to handle Associations and convert Member to dict. |
jwst.associations.config Module
Global configuration parameters.
jwst.associations.exceptions Module
Classes
Basic errors related to Associations. |
|
No matching constraint found. |
|
Given data structure is not a valid association. |
Class Inheritance Diagram
jwst.associations.format_template Module
Format template string allowing partial formatting.
Classes
|
Format a template. |
jwst.associations.generator.generate_per_candidate Module
Functions
|
Generate associations in the pool according to the rules. |
|
Generate associations based on a candidate ID. |
|
Group candidate IDs by the candidate type. |
|
Create a pool containing only the candidate. |
jwst.associations.generator.generate_per_pool Module
Functions
|
Generate associations on a specified pool. |
jwst.associations.lib.acid Module
Association Candidate IDentifier (ACID).
Classes
|
Association Candidate IDentifier. |
|
Enable ACID for rules. |
jwst.associations.lib.association_rules Module
Association Definitions: DMS-specific.
Note
This module exposes associations objects defined elsewhere for use in DMS only.
jwst.associations.lib.callback_registry Module
Module to handle association callback registry.
Classes
Callback registry. |
jwst.associations.lib.constraint Module
Constraints in this module are used to define the rules governing association candidate types.
Classes
|
Test attribute of an item. |
|
Constraint that is made up of multiple |
|
Always return True. |
|
A basic constraint. |
|
Simple constraint abstract base class. |
Class Inheritance Diagram
jwst.associations.lib.counter Module
Classes
|
Like |
jwst.associations.lib.diff Module
Tools to diff and compare associations.
Functions
|
Compare association files. |
|
Compare to lists of associations. |
|
Compare two associations. |
|
Compare two associations' membership. |
|
Compare membership between products. |
|
Check for duplicate members in an association product. |
|
Check for duplicate products in a list of associations. |
|
Split string into its components. |
|
Extract the exposure name from a Stage 2 file name. |
|
Return product names from associations and flag duplicates. |
|
Separate products into individual associations. |
Classes
|
Base class for difference errors. |
|
Candidate level mismatch. |
|
Duplicate members within a product. |
|
Duplicate products found. |
|
Different product sets between groups of associations. |
|
Difference in number of members between associations. |
|
Membership does not match. |
|
One product is a subset of another. |
|
Association type mismatch. |
|
Members not present in other. |
|
List of diff errors. |
jwst.associations.lib.dms_base Module
Association attributes common to DMS-based rules.
Classes
|
Match on non-background-target observations. |
|
Match on non-background, non-TSO observations. |
|
Match on non-TSO observations. |
|
Select on target acquisition exposures. |
|
Match on Time-Series Observations (TSO). |
|
Match on Wave Front Sensing and Control (WFSC) Observations. |
|
DMS-focused attribute constraint. |
|
Association attributes common to DMS-based rules. |
Class Inheritance Diagram
jwst.associations.lib.keyvalue_registry Module
Key/value registry.
Classes
|
Provide a dict-like registry. |
|
Exception class for key value in registry. |
No key in registry. |
|
Passed item is a list and not a single item. |
jwst.associations.lib.log_config Module
Configure association logging.
Functions
|
Set up logging with defaults. |
jwst.associations.lib.member Module
Association member for storing exposure metadata as dict-like objects.
Classes
|
Member of an association. |
jwst.associations.lib.process_list Module
Reprocessing lists and queues for associations.
A process list, ProcessList,
is a list of (items, rules) and meta information,
most notably work_over, which is one of the values in
ListCategory, which defines
which stage (order or priority, starting with zero) of association
processing the list is relevant to.
Process lists are primarily put into queues for processing.
There are two queues for handling ProcessList:
ProcessListQueueis a basic First-In-First-Out (FIFO) queue that can be used as a generator.ProcessQueueSortedreturns process lists according to their priority as defined by each list’swork_over. An important aspect of this queue is that it is mutable, i.e., new process lists can be added to the queue during iteration.
Classes
|
The work_over categories for association process lists. |
|
An association process list. |
|
First-In-First-Out queue of association process lists. |
|
Items to be processed. |
Make a deque iterable and mutable. |
|
|
Sort ProcessItem based on work_over. |
jwst.associations.lib.product_utils Module
Utilities for product manipulation.
Functions
|
Sort associations by candidate. |
|
Return product names from associations and flag duplicates. |
jwst.associations.lib.prune Module
Utilities to prune JWST DMS associations.
Functions
|
Remove duplicates and subset associations. |
Remove duplicate associations in favor of lower level versions. |
|
|
Remove duplicate products in favor of higher level versions. |
|
Remove or rename associations to be pruned. |
|
Separate associations based on whether they have already been identified as duplicates. |
jwst.associations.lib.rules_level2_base Module
Base classes which define the Level2 Associations.
Classes
Level 2 image association base. |
|
Associations that need to create nodding associations. |
|
Level 2 association handling for matching imprint images. |
|
Process special and non-science exposures as science. |
|
|
Level 2 spectral association base. |
Utility and overrides for WFSS associations. |
|
|
Select backgrounds. |
Select on program and instrument. |
|
Remove any nis_extcals from the associations. |
|
Select on non-science images. |
|
|
Select on science images. |
Select on imprint exposures. |
|
|
Select on imprint exposures with mosaic tile number. |
Select on instrument and optical path. |
|
|
Allow only single science exposure. |
|
Select on backgrounds and other auxiliary images. |
|
Select on spectral science. |
Select on target ID. |
|
|
Basic class for DMS Level2 associations. |
|
Utility functions that understand DMS Level 2 associations. |
jwst.associations.lib.rules_level2b Module
Association Definitions: DMS Level2b product associations.
Classes
|
Create normal rate products for some coronographic data. |
|
Level2b FGS Association. |
|
Level2b Non-TSO Science Image Association. |
|
Level2b Non-Science Image Association. |
|
Level2b Auxiliary Science Image Association. |
|
Level2b Time Series Science Image Association. |
|
Level2b MIRI LRS slit/slitless association with TA image. |
|
Level2b MIRI LRS Fixed Slit background nods Association. |
|
Level2b NIRSpec Fixed-slit Association. |
|
Level2b NIRSpec IFU Association. |
|
Level2b NIRSpec image Lamp Calibrations Association. |
|
Level2b NIRSpec spectral Lamp Calibrations Association. |
|
Level2b NIRSpec MSA Association. |
|
Level2b Science Spectral Association. |
|
Level2b Treat Imprint/Leakcal as science. |
|
Level2b Auxiliary Science Spectral Association. |
|
Level2b Time Series Science Spectral Association. |
|
Level2b WFSS/GRISM Association. |
|
Level2b WFSS/GRISM Association. |
|
Level2b MIR WFSS Association. |
|
Level 2b WFSS/GRISM associations for WFSS taken in pure-parallel mode. |
|
Level2b Wavefront Sensing & Control Association. |
Class Inheritance Diagram
jwst.associations.lib.rules_level3_base Module
Base classes which define the Level3 Associations.
Classes
Process special and non-science exposures as science. |
|
|
Basic overrides for Coronagraphy associations. |
|
Basic science constraints. |
|
All things that are spectrum. |
Select on program and instrument. |
|
|
Constrain on IFU exposures. |
|
Select on exposure type. |
Constrain on NIRSpec MSA exposures that are spectral. |
|
|
Select on OBSNUM. |
Select on optical path. |
|
|
Constrain on spectral exposure types. |
|
Select on target. |
|
Base class for DMS Level 3 associations. |
|
Utility functions that understand DMS Level 3 associations. |
jwst.associations.lib.rules_level3 Module
Association Definitions: DMS Level3 product associations.
Classes
|
Level 3 Gather Target Acquisitions. |
|
Level 3 Aperture Mask Interferometry Association. |
|
Level 3 Science Image Association. |
|
Level 3 Science Image Mosaic Association. |
|
Level 3 Background Image Association. |
|
Level 3 Coronagraphy Association. |
|
Level 3 MIRI MRS Association. |
|
Level 3 MIRI MRS Association Auxiliary data. |
|
Level 3 Coronagraphy Association. |
|
Level 3 Coronagraphy Association handled as regular imaging. |
|
Level 3 NIRSpec Fixed-Slit Science. |
|
Level 3 IFU Gratings Association. |
|
Level 3 Spectral Association. |
|
Level 3 slitless, target-based, or single-object spectrographic Association. |
|
Level 3 Spectral Association. |
|
Level 3 slit-like, multi-object spectrographic Association. |
|
Level 3 slit-like, target-based or single-object spectrographic Association. |
|
Level 3 Time-Series Association. |
|
Level 3 Wavefront Control & Sensing Association. |
|
Level 3 NIRISS WFSS/Grism Association. |
|
Level 3 NIRCam WFSS/Grism Association. |
|
Level 3 MIRI WFSS/PRISM Association. |
Class Inheritance Diagram
jwst.associations.lib.update_path Module
Update path of members in an association.
Functions
|
Update path of members in an association. |
|
Update all instances of a key using a modifier. |
|
Replace the path prefix of the basename. |
jwst.associations.lib.utilities Module
General utilities for associations.
Functions
|
Create a constraint based on a list of candidates. |
|
Evaluate a value. |
|
Return only those associations that have multiple candidates. |
|
Retrieve value from dict using a list of attributes. |
|
Force functions raising exceptions to return a value. |
|
Call getattr_from_list without allowing exceptions. |
|
General iterator check. |
jwst.associations.load_as_asn Module
Treat various objects as Association.
Classes
Read in or create an association. |
|
Read in or create a Level 2 association. |
jwst.associations.pool Module
Classes
|
A row from an association pool. |
jwst.associations.registry Module
Classes
Mark rules, callbacks, and modules for inclusion into a registry. |