Skip to content

Commit

Permalink
autoformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
jhazentia committed Feb 28, 2024
1 parent 5fc96ae commit 8c1d680
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ nasctn_sea_data_product:
- 3685e6
- 3695e6
- 3705e6
calibration_adjust: True
calibration_adjust: True
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ single_frequency_fft:
nffts: 300
nskip: 0
classification: UNCLASSIFIED
calibration_adjust: False
calibration_adjust: False
2 changes: 1 addition & 1 deletion src/scos_tekrsa/configs/test/test_survey_iq_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stepped_frequency_time_domain_iq:
- 793e6
- 802e6
reference_level: -10
sample_rate: 14e6
sample_rate: 14e6
duration_ms:
- 1000
- 1000
Expand Down
10 changes: 7 additions & 3 deletions src/scos_tekrsa/discover/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from scos_actions.actions.monitor_sigan import MonitorSignalAnalyzer
from scos_actions.discover import init

from scos_tekrsa.settings import CONFIG_DIR, DEVICE_MODEL, SIGAN_MODULE, SIGAN_CLASS
from scos_tekrsa.settings import CONFIG_DIR, DEVICE_MODEL, SIGAN_CLASS, SIGAN_MODULE

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -40,9 +40,13 @@
logger.debug(f"scos-tekrsa: SIGAN_CLASS = {SIGAN_CLASS}")
if SIGAN_MODULE == "scos_tekrsa.hardware.tekrsa_sigan" and SIGAN_CLASS == "TekRSASigan":
logger.debug("scos-tekrsa: loading test action configs")
test_actions["test_monitor_tekrsa"] = MonitorSignalAnalyzer(parameters={"name": "monitor_tekrsa"})
test_actions["test_monitor_tekrsa"] = MonitorSignalAnalyzer(
parameters={"name": "monitor_tekrsa"}
)
TEST_ACTION_DEFINITIONS_DIR = CONFIG_DIR / "test"
logger.debug(f"scos-tekrsa: TEST_ACTION_DEFINITIONS_DIR = {TEST_ACTION_DEFINITIONS_DIR}")
logger.debug(
f"scos-tekrsa: TEST_ACTION_DEFINITIONS_DIR = {TEST_ACTION_DEFINITIONS_DIR}"
)
_, yaml_test_actions = init(yaml_dir=TEST_ACTION_DEFINITIONS_DIR)
logger.debug(f"scos-tekrsa: Found {len(yaml_test_actions)} test action configs")
test_actions.update(yaml_test_actions)
Expand Down
2 changes: 1 addition & 1 deletion src/scos_tekrsa/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
if RUNNING_TESTS:
logging.basicConfig(level=logging.DEBUG)
SIGAN_MODULE = env.str("SIGAN_MODULE", default="scos_tekrsa.hardware.tekrsa_sigan")
SIGAN_CLASS = env.str("SIGAN_CLASS", default="TekRSASigan")
SIGAN_CLASS = env.str("SIGAN_CLASS", default="TekRSASigan")

0 comments on commit 8c1d680

Please sign in to comment.