Skip to content

Commit

Permalink
Added code to generate prototypes of the external/static calibration
Browse files Browse the repository at this point in the history
files. PRO.CATG is set according to DRLD values.

Added a command line option --doStatic to run_recipes to trigger the code
  • Loading branch information
JenniferKarr committed Oct 16, 2024
1 parent cbf9c68 commit 98c4dc4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion ESO/runRecipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ def parseCommandLine(self,args):
default=False,
help=('use detectors of 32x32 pixels; ' +
'for running in the continuous integration'))

parser.add_argument('-e', '--doStatic', action = "store_true",
default=False,
help=('Generate prototypes for static/external calibration files'))

parser.add_argument('-c', '--catg', type=str,
help='comma-separated list of selected output file categories')
parser.add_argument('--doCalib', type=int,
Expand Down Expand Up @@ -97,7 +102,9 @@ def parseCommandLine(self,args):


params['small'] = args.small


params['doStatic'] = args.doStatic

params['testRun'] = args.testRun

params['calibFile'] = args.calibFile
Expand All @@ -112,6 +119,7 @@ def parseCommandLine(self,args):
print(f" Observation dates will be taken from YAML file if given")
print(f" Automatically generated darks and flats {params['doCalib']}")
print(f" Small output option {params['small']}")
print(f" Generate External Calibs {params['doCalib']}")

self.params = params

Expand Down
3 changes: 2 additions & 1 deletion ESO/run_recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def runRecipes(argv):
if(not simulationSet.params['testRun']):
simulationSet.updateHeaders()

makeCalibPrototypes.generateStaticCalibs(simulationSet.params['outputDir'])
if(simulationSet.params['doStatic']):
makeCalibPrototypes.generateStaticCalibs(simulationSet.params['outputDir'])

if __name__ == "__main__":

Expand Down

0 comments on commit 98c4dc4

Please sign in to comment.