Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SplineMPE tweaking #229

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
16 changes: 8 additions & 8 deletions dependencies-from-Dockerfile.log
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fonttools==4.29.1
fs==2.4.12
gast==0.5.2
healpy==1.15.0
htchirp==2.0
htchirp==3.0
htcondor==23.1.0
html5lib==1.1
humanfriendly==10.0
Expand Down Expand Up @@ -138,7 +138,7 @@ urllib3==2.1.0
urwid==2.1.2
wcwidth==0.2.5
webencodings==0.5.1
wipac-dev-tools==1.7.1
wipac-dev-tools==1.8.1
wipac-rest-tools==1.6.0
xlwt==1.3.0
zipp==1.0.0
Expand Down Expand Up @@ -249,10 +249,10 @@ setuptools==59.6.0
six==1.16.0
skymap-scanner
├── ewms-pilot [required: Any, installed: 0.17.5]
│ ├── htchirp [required: Any, installed: 2.0]
│ ├── htchirp [required: Any, installed: 3.0]
│ ├── htcondor [required: Any, installed: 23.1.0]
│ └── oms-mqclient [required: Any, installed: 2.4.9]
│ └── wipac-dev-tools [required: Any, installed: 1.7.1]
│ └── wipac-dev-tools [required: Any, installed: 1.8.1]
│ ├── requests [required: Any, installed: 2.25.1]
│ └── typing-extensions [required: Any, installed: 4.8.0]
├── healpy [required: Any, installed: 1.15.0]
Expand All @@ -263,17 +263,17 @@ skymap-scanner
│ ├── meander [required: Any, installed: 0.0.3]
│ ├── numpy [required: Any, installed: 1.21.5]
│ ├── pandas [required: Any, installed: 1.3.5]
│ └── wipac-dev-tools [required: Any, installed: 1.7.1]
│ └── wipac-dev-tools [required: Any, installed: 1.8.1]
│ ├── requests [required: Any, installed: 2.25.1]
│ └── typing-extensions [required: Any, installed: 4.8.0]
├── iminuit [required: Any, installed: 2.24.0]
│ └── numpy [required: >=1.21, installed: 1.21.5]
├── numpy [required: Any, installed: 1.21.5]
├── oms-mqclient [required: Any, installed: 2.4.9]
│ └── wipac-dev-tools [required: Any, installed: 1.7.1]
│ └── wipac-dev-tools [required: Any, installed: 1.8.1]
│ ├── requests [required: Any, installed: 2.25.1]
│ └── typing-extensions [required: Any, installed: 4.8.0]
├── wipac-dev-tools [required: Any, installed: 1.7.1]
├── wipac-dev-tools [required: Any, installed: 1.8.1]
│ ├── requests [required: Any, installed: 2.25.1]
│ └── typing-extensions [required: Any, installed: 4.8.0]
└── wipac-rest-tools [required: Any, installed: 1.6.0]
Expand All @@ -287,7 +287,7 @@ skymap-scanner
│ └── requests [required: >=1.2.0, installed: 2.25.1]
├── tornado [required: Any, installed: 6.3.3]
├── urllib3 [required: >=2.0.4, installed: 2.1.0]
└── wipac-dev-tools [required: Any, installed: 1.7.1]
└── wipac-dev-tools [required: Any, installed: 1.8.1]
├── requests [required: Any, installed: 2.25.1]
└── typing-extensions [required: Any, installed: 4.8.0]
sortedcontainers==2.1.0
Expand Down
16 changes: 8 additions & 8 deletions dependencies-from-Dockerfile_no_cvmfs.log
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fonttools==4.29.1
fs==2.4.12
gast==0.5.2
healpy==1.15.0
htchirp==2.0
htchirp==3.0
htcondor==23.1.0
html5lib==1.1
humanfriendly==10.0
Expand Down Expand Up @@ -138,7 +138,7 @@ urllib3==2.1.0
urwid==2.1.2
wcwidth==0.2.5
webencodings==0.5.1
wipac-dev-tools==1.7.1
wipac-dev-tools==1.8.1
wipac-rest-tools==1.6.0
xlwt==1.3.0
zipp==1.0.0
Expand Down Expand Up @@ -249,10 +249,10 @@ setuptools==59.6.0
six==1.16.0
skymap-scanner
├── ewms-pilot [required: Any, installed: 0.17.5]
│ ├── htchirp [required: Any, installed: 2.0]
│ ├── htchirp [required: Any, installed: 3.0]
│ ├── htcondor [required: Any, installed: 23.1.0]
│ └── oms-mqclient [required: Any, installed: 2.4.9]
│ └── wipac-dev-tools [required: Any, installed: 1.7.1]
│ └── wipac-dev-tools [required: Any, installed: 1.8.1]
│ ├── requests [required: Any, installed: 2.25.1]
│ └── typing-extensions [required: Any, installed: 4.8.0]
├── healpy [required: Any, installed: 1.15.0]
Expand All @@ -263,17 +263,17 @@ skymap-scanner
│ ├── meander [required: Any, installed: 0.0.3]
│ ├── numpy [required: Any, installed: 1.21.5]
│ ├── pandas [required: Any, installed: 1.3.5]
│ └── wipac-dev-tools [required: Any, installed: 1.7.1]
│ └── wipac-dev-tools [required: Any, installed: 1.8.1]
│ ├── requests [required: Any, installed: 2.25.1]
│ └── typing-extensions [required: Any, installed: 4.8.0]
├── iminuit [required: Any, installed: 2.24.0]
│ └── numpy [required: >=1.21, installed: 1.21.5]
├── numpy [required: Any, installed: 1.21.5]
├── oms-mqclient [required: Any, installed: 2.4.9]
│ └── wipac-dev-tools [required: Any, installed: 1.7.1]
│ └── wipac-dev-tools [required: Any, installed: 1.8.1]
│ ├── requests [required: Any, installed: 2.25.1]
│ └── typing-extensions [required: Any, installed: 4.8.0]
├── wipac-dev-tools [required: Any, installed: 1.7.1]
├── wipac-dev-tools [required: Any, installed: 1.8.1]
│ ├── requests [required: Any, installed: 2.25.1]
│ └── typing-extensions [required: Any, installed: 4.8.0]
└── wipac-rest-tools [required: Any, installed: 1.6.0]
Expand All @@ -287,7 +287,7 @@ skymap-scanner
│ └── requests [required: >=1.2.0, installed: 2.25.1]
├── tornado [required: Any, installed: 6.3.3]
├── urllib3 [required: >=2.0.4, installed: 2.1.0]
└── wipac-dev-tools [required: Any, installed: 1.7.1]
└── wipac-dev-tools [required: Any, installed: 1.8.1]
├── requests [required: Any, installed: 2.25.1]
└── typing-extensions [required: Any, installed: 4.8.0]
sortedcontainers==2.1.0
Expand Down
16 changes: 8 additions & 8 deletions dependencies-from-Dockerfile_pulsar.log
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fonttools==4.29.1
fs==2.4.12
gast==0.5.2
healpy==1.15.0
htchirp==2.0
htchirp==3.0
htcondor==23.1.0
html5lib==1.1
humanfriendly==10.0
Expand Down Expand Up @@ -139,7 +139,7 @@ urllib3==2.1.0
urwid==2.1.2
wcwidth==0.2.5
webencodings==0.5.1
wipac-dev-tools==1.7.1
wipac-dev-tools==1.8.1
wipac-rest-tools==1.6.0
xlwt==1.3.0
zipp==1.0.0
Expand Down Expand Up @@ -251,10 +251,10 @@ setuptools==59.6.0
six==1.16.0
skymap-scanner
├── ewms-pilot [required: Any, installed: 0.17.5]
│ ├── htchirp [required: Any, installed: 2.0]
│ ├── htchirp [required: Any, installed: 3.0]
│ ├── htcondor [required: Any, installed: 23.1.0]
│ └── oms-mqclient [required: Any, installed: 2.4.9]
│ └── wipac-dev-tools [required: Any, installed: 1.7.1]
│ └── wipac-dev-tools [required: Any, installed: 1.8.1]
│ ├── requests [required: Any, installed: 2.25.1]
│ └── typing-extensions [required: Any, installed: 4.8.0]
├── healpy [required: Any, installed: 1.15.0]
Expand All @@ -265,17 +265,17 @@ skymap-scanner
│ ├── meander [required: Any, installed: 0.0.3]
│ ├── numpy [required: Any, installed: 1.21.5]
│ ├── pandas [required: Any, installed: 1.3.5]
│ └── wipac-dev-tools [required: Any, installed: 1.7.1]
│ └── wipac-dev-tools [required: Any, installed: 1.8.1]
│ ├── requests [required: Any, installed: 2.25.1]
│ └── typing-extensions [required: Any, installed: 4.8.0]
├── iminuit [required: Any, installed: 2.24.0]
│ └── numpy [required: >=1.21, installed: 1.21.5]
├── numpy [required: Any, installed: 1.21.5]
├── oms-mqclient [required: Any, installed: 2.4.9]
│ └── wipac-dev-tools [required: Any, installed: 1.7.1]
│ └── wipac-dev-tools [required: Any, installed: 1.8.1]
│ ├── requests [required: Any, installed: 2.25.1]
│ └── typing-extensions [required: Any, installed: 4.8.0]
├── wipac-dev-tools [required: Any, installed: 1.7.1]
├── wipac-dev-tools [required: Any, installed: 1.8.1]
│ ├── requests [required: Any, installed: 2.25.1]
│ └── typing-extensions [required: Any, installed: 4.8.0]
└── wipac-rest-tools [required: Any, installed: 1.6.0]
Expand All @@ -289,7 +289,7 @@ skymap-scanner
│ └── requests [required: >=1.2.0, installed: 2.25.1]
├── tornado [required: Any, installed: 6.3.3]
├── urllib3 [required: >=2.0.4, installed: 2.1.0]
└── wipac-dev-tools [required: Any, installed: 1.7.1]
└── wipac-dev-tools [required: Any, installed: 1.8.1]
├── requests [required: Any, installed: 2.25.1]
└── typing-extensions [required: Any, installed: 4.8.0]
sortedcontainers==2.1.0
Expand Down
18 changes: 18 additions & 0 deletions skymap_scanner/recos/common/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from icecube.icetray import I3Frame # type: ignore[import]
from datetime import datetime


def check_name(frame: I3Frame, logger, key: str) -> None:
if key not in frame:
logger.debug(f"Check that {key} is in frame: -> FAIL.")
raise RuntimeError(f"{key} not in frame.")
else:
logger.debug(f"Check that {key} is in frame: -> success.")


def notify_debug(frame: I3Frame, logger, message):
logger.debug(f"{message} - {datetime.now()}")


def log_frame(frame, logger):
logger.debug(f"{repr(frame)}/{frame}")
Loading
Loading