Skip to content

Commit

Permalink
Default signal_analyzer to None and add optional switches to MockSign…
Browse files Browse the repository at this point in the history
…alAnalyzer.
  • Loading branch information
dboulware committed Jan 22, 2024
1 parent 0e82996 commit 0581b95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions scos_actions/hardware/mocks/mock_sigan.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def __init__(
self,
sensor_cal: Optional[Calibration] = None,
sigan_cal: Optional[Calibration] = None,
switches: Optional[dict] = None,
randomize_values: bool = False,
):
super().__init__(sensor_cal, sigan_cal)
Expand Down
4 changes: 2 additions & 2 deletions scos_actions/hardware/sensor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import datetime
import hashlib
import json
import datetime
from typing import Dict

from its_preselector.preselector import Preselector
Expand All @@ -14,7 +14,7 @@
class Sensor:
def __init__(
self,
signal_analyzer: SignalAnalyzerInterface = MockSignalAnalyzer,
signal_analyzer: SignalAnalyzerInterface = None,
gps: GPSInterface = None,
preselector: Preselector = None,
switches: Dict[str, WebRelay] = {},
Expand Down

0 comments on commit 0581b95

Please sign in to comment.