Skip to content

Commit

Permalink
rename sensor to sensitivity.
Browse files Browse the repository at this point in the history
sensitivity = find out which observations are affected and over which
portion of the input data the analyzer should be run. this will be moved
next to analyzercontext and execute in analyzer environment.
sensor = server that watches the observatory for changes and tells
supervisor to run analyzers.
  • Loading branch information
gubser committed May 24, 2016
1 parent cee6538 commit 3e467b1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sensor/sensor.py → sensor/sensitivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def hourly(interval: Interval) -> Interval:
return start, stop


class SensorBase:
class SensitivityBase:
def __init__(self, analyzer_name: str, inputs: Sequence[str], action_log: Collection):
self.name = analyzer_name
self.log = action_log
Expand All @@ -42,7 +42,7 @@ def check(self) -> Sequence[Interval]:
raise NotImplementedError()


class SensorNaive(SensorBase):
class SensorNaive(SensitivityBase):
def __init__(self, analyzer_name: str, inputs: Sequence[str], action_log: Collection):
super().__init__(analyzer_name, inputs, action_log)

Expand All @@ -55,7 +55,7 @@ def check(self) -> Sequence[Interval]:
return []


class SensorAggregating(SensorBase):
class SensorAggregating(SensitivityBase):
def __init__(self,
analyzer_name: str,
inputs: Sequence[str],
Expand All @@ -82,9 +82,8 @@ def check(self) -> Sequence[Interval]:
return tl.intervals


class SensorDistance(SensorBase):
class SensorDistance(SensitivityBase):
# TODO
def check(self) -> Sequence[Interval]:
raise NotImplementedError()


0 comments on commit 3e467b1

Please sign in to comment.