Skip to content

Commit

Permalink
remove time_calib file since not produced in calibrate_charge
Browse files Browse the repository at this point in the history
  • Loading branch information
Bultako committed Jan 11, 2022
1 parent 14a0038 commit efc9a93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
11 changes: 5 additions & 6 deletions osa/provenance/config/definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ activities:
# entityName: SystematicsCorrectionFile
# value: SystematicsCorrectionFile
# filepath: /path/to/ff_systematics_file.h5
# - role: "Time calibration file"
# description: "Time calibration file"
# entityName: TimeCalibrationFile
# value: TimeCalibrationFile
# filepath: /fefs/aswg/data/real/calibration/20210913/v0.7.5/time_calibration.Run06274.0000.hdf5
generation:
- role: "Coefficients calibration file"
description: "Coefficients calibration file"
Expand All @@ -115,12 +120,6 @@ activities:
entityName: CalibrationCheckPlot
value: CalibrationCheckPlot
# filepath: /fefs/aswg/data/real/calibration/20210913/v0.7.5/log/calibration.Run06274.0000.pedestal.Run06268.0000.pdf
- role: "Time calibration file"
description: "Time calibration file"
entityName: TimeCalibrationFile
value: TimeCalibrationFile
# filepath: /fefs/aswg/data/real/calibration/20210913/v0.7.5/time_calibration.Run06274.0000.hdf5

r0_to_dl1:
description:
"Create DL1 files for an observation run and subrun"
Expand Down
4 changes: 0 additions & 4 deletions osa/provenance/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from osa.configs import options
from osa.configs.config import cfg
from osa.job import get_time_calibration_file
from osa.utils.utils import get_lstchain_version, lstdate_to_dir

__all__ = ["parse_variables", "get_log_config", "store_conda_env_export"]
Expand Down Expand Up @@ -90,9 +89,6 @@ def parse_variables(class_instance):
class_instance.CoefficientsCalibrationFile = os.path.realpath(
f"{calib_dir}/{flat_date}/{pro}/calibration_filters_52.Run{class_instance.args[1]}.0000.h5"
)
class_instance.TimeCalibrationFile = os.path.realpath(
get_time_calibration_file(int(class_instance.args[1]))
)

if class_instance.__name__ == "r0_to_dl1":
# calibrationfile [0] .../20200218/v00/calibration.Run02006.0000.hdf5
Expand Down
2 changes: 1 addition & 1 deletion osa/scripts/tests/test_osa_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_simulate_processing(drs4_time_calibration_files, run_summary_file):
assert len(dl1["entity"]) == 15
assert len(dl1["activity"]) == 4
assert len(dl1["used"]) == 12
assert len(dl1["wasGeneratedBy"]) == 8
assert len(dl1["wasGeneratedBy"]) == 7

with open(json_file_dl2) as file:
dl2 = yaml.safe_load(file)
Expand Down

0 comments on commit efc9a93

Please sign in to comment.