Skip to content

Commit

Permalink
Update ctapipe traitlets calls in Franca's tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenain committed Aug 22, 2024
1 parent 8d019d8 commit bca2f95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/nectarchain/tools/write_camera_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ class CalibrationHDF5Writer(Tool):
800, help="Temporary cut on charge to eliminate events without led signal"
).tag(config=True)

pedestal_product = traits.enum_trait(
PedestalCalculator, default="PedestalIntegrator"
)
pedestal_product = traits.Enum(PedestalCalculator, default="PedestalIntegrator")

Check warning on line 45 in src/nectarchain/tools/write_camera_calibration.py

View check run for this annotation

Codecov / codecov/patch

src/nectarchain/tools/write_camera_calibration.py#L45

Added line #L45 was not covered by tests

flatfield_product = traits.enum_trait(
flatfield_product = traits.Enum(

Check warning on line 47 in src/nectarchain/tools/write_camera_calibration.py

View check run for this annotation

Codecov / codecov/patch

src/nectarchain/tools/write_camera_calibration.py#L47

Added line #L47 was not covered by tests
FlatFieldCalculator, default="FlasherFlatFieldCalculator"
)

Expand Down
4 changes: 1 addition & 3 deletions src/nectarchain/tools/write_pedestals.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ class PedestalHDF5Writer(Tool):
config=True
)

calculator_product = traits.enum_trait(
PedestalCalculator, default="PedestalIntegrator"
)
calculator_product = traits.Enum(PedestalCalculator, default="PedestalIntegrator")

Check warning on line 27 in src/nectarchain/tools/write_pedestals.py

View check run for this annotation

Codecov / codecov/patch

src/nectarchain/tools/write_pedestals.py#L27

Added line #L27 was not covered by tests

aliases = Dict(
dict(
Expand Down

0 comments on commit bca2f95

Please sign in to comment.