Skip to content

Commit

Permalink
Merge pull request #1089 from cta-observatory/dvr_pixel_selector
Browse files Browse the repository at this point in the history
Dvr pixel selector
  • Loading branch information
moralejo authored May 14, 2023
2 parents 4cc8bce + 94b1a8e commit 58a12a3
Show file tree
Hide file tree
Showing 3 changed files with 572 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lstchain/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def observed_dl1_files(temp_dir_observed_files, run_summary_path):
dl1_output_path1 = temp_dir_observed_files / "dl1_LST-1.Run02008.0000.h5"
muons_file1 = temp_dir_observed_files / "muons_LST-1.Run02008.0000.fits"
datacheck_file1 = temp_dir_observed_files / "datacheck_dl1_LST-1.Run02008.0000.h5"
dvr_file1 = temp_dir_observed_files / "DVR_settings_LST-1.Run02008.h5"
pixmasks_file1 = temp_dir_observed_files / "Pixel_selection_LST-1.Run02008.0000.h5"

# Second set of files
dl1_output_path2 = temp_dir_observed_files / "dl1_LST-1.Run02008.0100.h5"
Expand Down Expand Up @@ -148,6 +150,24 @@ def observed_dl1_files(temp_dir_observed_files, run_summary_path):
dl1_output_path1
)

run_program(
"lstchain_dvr_pixselector",
"--dl1-files",
dl1_output_path1,
"--output-dir",
temp_dir_observed_files
)

run_program(
"lstchain_dvr_pixselector",
"--dl1-files",
dl1_output_path1,
"--output-dir",
temp_dir_observed_files,
"--action",
"create_pixel_masks"
)

run_program(
"lstchain_data_r0_to_dl1",
"-f",
Expand Down Expand Up @@ -181,6 +201,8 @@ def observed_dl1_files(temp_dir_observed_files, run_summary_path):
'dl1_file1': dl1_output_path1,
'muons1': muons_file1,
'datacheck1': datacheck_file1,
'dvr_file1': dvr_file1,
'pixmasks_file1': pixmasks_file1,
'dl1_file2': dl1_output_path2,
'muons2': muons_file2,
'datacheck2': datacheck_file2
Expand Down
Loading

0 comments on commit 58a12a3

Please sign in to comment.