Skip to content

Commit

Permalink
Add some import
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmelleJB committed Jan 14, 2025
1 parent d9a4622 commit 89e5140
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions src/nectarchain/makers/calibration/flatfieldMakers.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
import logging
import os
import pathlib

from ctapipe.core.traits import ComponentNameList

from nectarchain.makers import EventsLoopNectarCAMCalibrationTool
from nectarchain.makers.component import NectarCAMComponent

logging.basicConfig(format="%(asctime)s %(name)s %(levelname)s %(message)s")
log = logging.getLogger(__name__)
log.handlers = logging.getLogger("__main__").handlers

from .core import NectarCAMCalibrationTool

__all__ = ["FlatfieldNectarCAMCalibrationTool"]


#class FlatfieldNectarCAMCalibrationTool(NectarCAMCalibrationTool):
# def start(self):
# raise NotImplementedError(
# "The computation of the flatfield calibration is not yet implemented, feel free to contribute !:)"
# )

from nectarchain.makers import EventsLoopNectarCAMCalibrationTool


class FlatfieldNectarCAMCalibrationTool(EventsLoopNectarCAMCalibrationTool):
name = "NectarCAM"

Expand All @@ -35,4 +31,3 @@ def _init_output_path(self):
self.output_path = pathlib.Path(
f"{os.environ.get('NECTARCAMDATA','/tmp')}/FlatFieldTests/{filename}"
)

0 comments on commit 89e5140

Please sign in to comment.