Skip to content

Commit

Permalink
adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marialainez committed Feb 10, 2025
1 parent 8070e23 commit 412eb7e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/osa/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,27 @@ def catB_calibration_file(catB_calib_dir):

@pytest.fixture(scope="session")
def dl1b_config_file(running_analysis_dir):

config_information = dedent(
"""\
{
"tailcuts_clean_with_pedestal_threshold": {
"picture_thresh": 8,
"boundary_thresh": 4,
"sigma": 2.5,
"keep_isolated_pixels": false,
"min_number_picture_neighbors": 2,
"use_only_main_island": false,
"delta_time": 2
},
"dynamic_cleaning": {
"apply": true,
"threshold": 267,
"fraction_cleaning_intensity": 0.03
}
}"""
)
config_file = running_analysis_dir / "dl1ab_Run00003.json"
config_file.touch()
config_file.write_text(config_information)
return config_file

0 comments on commit 412eb7e

Please sign in to comment.