Skip to content

Commit

Permalink
import Float from traits instaed of traits.Float()
Browse files Browse the repository at this point in the history
  • Loading branch information
TjarkMiener committed Aug 5, 2024
1 parent fde34c0 commit d46c3ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ctapipe/monitoring/outlier.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

import numpy as np

from ctapipe.core import TelescopeComponent, traits
from ctapipe.core.traits import List
from ctapipe.core import TelescopeComponent
from ctapipe.core.traits import Float, List


class OutlierDetector(TelescopeComponent):
Expand Down Expand Up @@ -55,7 +55,7 @@ class RangeOutlierDetector(OutlierDetector):
"""

validity_range = List(
trait=traits.Float(),
trait=Float(),
default_value=[1.0, 2.0],
help=(
"Defines the range of acceptable values (lower, upper) in units of image values. "
Expand Down Expand Up @@ -83,7 +83,7 @@ class MedianOutlierDetector(OutlierDetector):
"""

median_range_factors = List(
trait=traits.Float(),
trait=Float(),
default_value=[-1.0, 1.0],
help=(
"Defines the range of acceptable values (lower, upper) in units of medians. "
Expand Down Expand Up @@ -114,7 +114,7 @@ class StdOutlierDetector(OutlierDetector):
"""

std_range_factors = List(
trait=traits.Float(),
trait=Float(),
default_value=[-1.0, 1.0],
help=(
"Defines the range of acceptable values (lower, upper) in units of standard deviations. "
Expand Down

0 comments on commit d46c3ff

Please sign in to comment.