Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

(blue star) 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.g

    Code Block
    languageyaml
    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.g

    Code Block
    languageyaml
    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.g

    Code Block
    languageyaml
    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)


(lightbulb) Have Questions? Ask a HySDS Developer:

Anyone can join our public Slack channelto learn more about HySDS. JPL employees can join #HySDS-Community

(blue star)

JPLers can also ask HySDS questions atStack Overflow Enterprise

(blue star)

Live Search
placeholderSearch HySDS Wiki