-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding thermal tests scripts / starting CI for DQM * Adding script for processing laser thermal data * adding CI tests for all DQM modules - initial + cleaning code * fixing the path to the test run file for the CI tests * adding more CI tests to the pixel_particiapation module * removing prints * Adding more CI tests for the remaining DQM modules --------- Co-authored-by: Jean-Philippe Lenain <[email protected]>
- Loading branch information
Showing
18 changed files
with
562 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from .db_utils import DQMDB | ||
from .dqm_summary_processor import DQMSummary | ||
from .pixel_participation import PixelParticipationHighLowGain | ||
|
||
__all__ = ["DQMDB", "DQMSummary"] | ||
__all__ = ["DQMDB", "DQMSummary", "PixelParticipationHighLowGain"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
from astropy import time as astropytime | ||
from ctapipe.io import EventSource | ||
from ctapipe.utils import get_dataset_path | ||
from ctapipe_io_nectarcam.constants import HIGH_GAIN | ||
from tqdm import tqdm | ||
from traitlets.config import Config | ||
|
||
from nectarchain.dqm.camera_monitoring import CameraMonitoring | ||
|
||
|
||
class TestCameraMonitoring: | ||
run_number = 3798 | ||
max_events = 1 | ||
|
||
def test_camera_monitoring(self): | ||
# run_number = 3938 | ||
path = get_dataset_path("NectarCAM.Run3938.30events.fits.fz") | ||
|
||
config = None | ||
|
||
config = Config( | ||
dict( | ||
NectarCAMEventSource=dict( | ||
NectarCAMR0Corrections=dict( | ||
calibration_path=None, | ||
apply_flatfield=False, | ||
select_gain=False, | ||
) | ||
) | ||
) | ||
) | ||
print(path) | ||
|
||
reader1 = EventSource(input_url=path, config=config, max_events=1) | ||
|
||
Pix, Samp = CameraMonitoring(HIGH_GAIN).DefineForRun(reader1) | ||
|
||
CameraMonitoring(HIGH_GAIN).ConfigureForRun(path, Pix, Samp, reader1) | ||
|
||
for evt in tqdm(reader1, total=1): | ||
run_start1 = evt.nectarcam.tel[0].svc.date | ||
SqlFileDate = astropytime.Time(run_start1, format="unix").iso.split(" ")[0] | ||
# print("SqlFileDate", SqlFileDate) | ||
# CameraMonitoring(HIGH_GAIN).FinishRun() | ||
assert Pix + Samp == 1915 | ||
assert SqlFileDate == "2023-01-23" |
Oops, something went wrong.