Skip to content

Commit

Permalink
Remove SENSOR_CALIBRATION_FILE And SIGAN_CALIBRATION_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
dboulware committed Jan 15, 2024
1 parent 5f4b3cc commit 25ce95d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion scos_actions/actions/calibrate_y_factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
from scos_actions import utils
from scos_actions.actions.interfaces.action import Action
from scos_actions.hardware.sigan_iface import SIGAN_SETTINGS_KEYS
from scos_actions.settings import SENSOR_CALIBRATION_FILE
from scos_actions.signal_processing.calibration import (
get_linear_enr,
get_temperature,
Expand Down
10 changes: 5 additions & 5 deletions scos_actions/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
logger.debug("Initializing scos-actions settings")
CONFIG_DIR = Path(__file__).parent.resolve() / "configs"
logger.debug(f"scos-actions: CONFIG_DIR:{CONFIG_DIR}")
ACTION_DEFINITIONS_DIR = CONFIG_DIR / "actions"
ACTION_DEFINITIONS_DIR = Path(CONFIG_DIR / "actions")
logger.debug(f"scos-actions: ACTION_DEFINITIONS_DIR:{ACTION_DEFINITIONS_DIR}")
DEFAULT_CALIBRATION_FILE = path.join(CONFIG_DIR, "default_calibration.json")
logger.debug(f"scos-actions: DEFAULT_CALIBRATION_FILE:{DEFAULT_CALIBRATION_FILE}")
SIGAN_CALIBRATION_FILE = env("SIGAN_CALIBRATION_FILE", None)
logger.debug(f"scos-actions: SIGAN_CALIBRATION_FILE:{SIGAN_CALIBRATION_FILE}")
SENSOR_CALIBRATION_FILE = env("SENSOR_CALIBRATION_FILE", None)
logger.debug(f"scos-actions: SENSOR_CALIBRATION_FILE:{SENSOR_CALIBRATION_FILE}")
SWITCH_CONFIGS_DIR = env("SWITCH_CONFIGS_DIR", default=None)
if SWITCH_CONFIGS_DIR:
SWITCH_CONFIGS_DIR = Path(SWITCH_CONFIGS_DIR)
logger.debug(f"scos-actions: SWITCH_CONFIGS_DIR:{SWITCH_CONFIGS_DIR}")
SCOS_SENSOR_GIT_TAG = env("SCOS_SENSOR_GIT_TAG", default="unknown")
logger.debug(f"scos-actions: SCOS_SENSOR_GIT_TAG:{SCOS_SENSOR_GIT_TAG}")
Expand All @@ -27,6 +25,8 @@
RUNNING_TESTS = env.bool("RUNNING_TESTS", False)
logger.debug(f"scos-actions: RUNNING_TESTS:{RUNNING_TESTS}")
SENSOR_DEFINITION_FILE = env("SENSOR_DEFINITION_FILE", None)
if SENSOR_DEFINITION_FILE:
SENSOR_DEFINITION_FILE = Path(SENSOR_DEFINITION_FILE)
logger.debug(f"scos-actions: RUNNING_TESTS:{RUNNING_TESTS}")
FQDN = env("FQDN", None)
logger.debug(f"scos-actions: FQDN:{FQDN}")
Expand Down

0 comments on commit 25ce95d

Please sign in to comment.