Skip to content

Commit

Permalink
Add calibration support for multiple files IRIS and OSIRIS
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasarus committed Nov 21, 2024
1 parent b9daab2 commit a81e99b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rundetection/rules/iris_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ def verify(self, job_request: JobRequest) -> None:
if not self._value:
return
reflection = job_request.additional_values["reflection"]
job_request.additional_values["calibration_run_number"] = self._value[reflection]
job_request.additional_values["calibration_run_numbers"] = self._value[reflection]
4 changes: 2 additions & 2 deletions rundetection/rules/osiris_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def verify(self, job_request: JobRequest) -> None:
job_request.additional_values["analyser"] = "graphite"


class OsirisReflectionCalibrationRule(Rule[dict[str, str]]):
class OsirisReflectionCalibrationRule(Rule[dict[str, list[str]]]):
"""
Determine the reflection and set calibration run number based on the reflection
"""
Expand Down Expand Up @@ -173,4 +173,4 @@ def verify(self, job_request: JobRequest) -> None:
reflection = self._determine_reflection(job_request)

job_request.additional_values["reflection"] = reflection
job_request.additional_values["calibration_run_number"] = self._value[reflection]
job_request.additional_values["calibration_run_numbers"] = self._value[reflection]
2 changes: 1 addition & 1 deletion rundetection/specifications/iris_specification.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enabled": true,
"irisreduction": true,
"iriscalibration": {"002": "00105275", "004": "00105275"},
"iriscalibration": {"002": "105313, 105315, 105317", "004": "105275"},
"molspecstitch": true
}
2 changes: 1 addition & 1 deletion rundetection/specifications/osiris_specification.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"enabled": true,
"osiriscalibfilesandreflection": {"002": "00149059", "004": "00149060"},
"osiriscalibfilesandreflection": {"002": "149784, 149785, 149786", "004": "149789, 149790"},
"osirisreductionmode": false,
"osirisdefaultspectroscopy": true,
"osirisdefaultgraniteanalyser": true,
Expand Down

0 comments on commit a81e99b

Please sign in to comment.