Versions Compared

Key

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

You can read about the file: Chimera Config File

  1. Create a directory in your project’s repo to host the Chimera adaptation code e.g. nisar_chimera

  2. Decide on adaptation script names for the 3 Chimera steps.
    e.g. Under the nisar_chimera In NISAR, under the adaptation directory, we created the following:

    1. precondition_functions.py - The preconditions adaptation script containing a class named NisarPreConditionFunctions which is a sub-class of PreConditionFunctions.

    2. nisar_pge_job_submitter.py - The PGE job submission adaptation script containing a class named NisarPgeJobSubmitter which is a sub-class of PgeJobSubmitter.

    3. postprocess_functions.py - The PGE job submission adaptation script containing a class named NisarPostProcessFunctions which is a sub-class of PostProcessFunctions.

32. Then write up a file named ``create a file named chimera_config.yaml in the configs directory following the template provided in Chimera Config File
e.g for the NISAR chimera_config.yaml is as follows:

Code Block
languageyaml
 module_path is a path to where the given class can be found

# This tells Chimera how to load in the precondition functions class in order to do the input preprocessor step.
# class_name must be a subclass of Chimera's PreConditionFunctions class.
preprocessor:
  module_path: nisar_chimera.precondition_functions
  class_name: NisarPreConditionFunctions

# This tells Chimera how to load in the job submitter class in order to do the PGE job submission step.
# class_name must be a subclass of Chimera's PgeJobSubmitter class.
job_submitter:
  module_path: nisar_chimera.nisar_pge_job_submitter
  class_name: NisarPgeJobSubmitter

# This tells Chimera how to load in the post processor class in order to run any custom post processing.
# class_name must be a subclass of Chimera's PostProcessFunctions class.
postprocessor:
  module_path: nisar_chimera.postprocess_functions
  class_name: NisarPostProcessFunctions