Skip to content

Commit

Permalink
calib exception (+ minor fixes)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elisa-Visentin committed Oct 4, 2023
1 parent ece3300 commit 69ca7c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions magicctapipe/image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@
get_num_islands_MAGIC,
clean_image_params,
)
from .leakage import (
get_leakage,
)
from .calib import (
calibrate,
)
from .leakage import get_leakage
from .calib import calibrate


__all__ = [
Expand Down
3 changes: 1 addition & 2 deletions magicctapipe/image/calib.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,5 @@ def calibrate(event, tel_id, config, calibrator, LST_bool, obs_id=None, camera_g
signal_pixels[island_labels != max_island_label] = False

else:
print("Check the provided parameters and the telescope type; calibration was not possible")
return
raise ValueError("Check the provided parameters and the telescope type; calibration was not possible")
return signal_pixels, image, peak_time

0 comments on commit 69ca7c1

Please sign in to comment.