Confidence Level Moderate This article includes input from several JPLers. Multiple subject matter experts can indicate that a page is more frequently reviewed and updated. |
---|
This file is collection of key value pairs. It contains useful information needed by the Chimera framework to run in a generic way. This file should contain:
The names of all the precondition function
e.gCode Block language yaml GET_PRODUCT_METADATA = "get_product_metadata" GET_METADATA = "get_metadata" GET_ORBIT_EPHEMERIS = "get_orbit_ephemeris" DYN_ANCILLARY_FILES = "getDynamicAncillaryFileTypes" LATEST_PRODUCTS_OVER_TIME_RANGE = "get_latest_products_over_time_range" MOST_RECENT_FILES = "get_product_most_recent" MOST_RECENT_VERSION_FILES = "get_product_most_recent_version"
Attribute names in run config
e.gCode Block language yaml SW_VERSION_ID = "SWVersionID" INPUT_FILE_PATH = "InputFilePath" INPUT_FILE_GROUP = "InputFileGroup" STATIC_ANCILLARY_FILE_GROUP = "StaticAncillaryFileGroup" DYNAMIC_ANCILLARY_FILE_GROUP = "DynamicAncillaryFileGroup" PRODUCTION_DATE_TIME = "ProductionDateTime"
PGE names
e.gCode Block language yaml L0A = "L0A" TIME_EXTRACTOR = "Time_Extractor" L0B = "L0B"
First, setup this file as follows:
Code Block |
---|
from chimera.commons.constants import ChimeraConstants
class ChimeraConstantsClass(ChimeraConstants):
def __init__(self):
ChimeraConstants.__init__(self) |
These constants can be imported by the adaptation subclasses as follows:
Code Block |
---|
from [path to constants file] import ChimeraConstantsClass as nc_const |
Now you can use the constants within the adaptation subclasses as follows:
Code Block |
---|
crid = self._settings.get(nc_const.CRID) |