Skip to content

Commit

Permalink
Change scos-actions branch, Only set SIGAN_MODULE and SIGAN_CLASS whe…
Browse files Browse the repository at this point in the history
…n running tests, remove cal adjust from cbrs measure yml files
  • Loading branch information
jhazentia committed Apr 29, 2024
1 parent e90f757 commit 62565d7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ classifiers = [
dependencies = [
"environs>=9.5.0",
"tekrsa-api-wrap>=1.3.2",
"scos_actions @ git+https://github.com/NTIA/scos-actions@10.0.0",
"scos_actions @ git+https://github.com/NTIA/scos-actions@fix_test_cbrs_measure",
]

[project.optional-dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ nasctn_sea_data_product:
- 3685e6
- 3695e6
- 3705e6
calibration_adjust: True
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
nasctn_sea_data_product:
name: test_SEA_CBRS_Measure_Baseline
rf_path: antenna
calibration_adjust: False
# IIR filter settings
iir_gpass_dB: 0.1 # Max passband ripple below unity gain
iir_gstop_dB: 40 # Minimum stopband attenuation
Expand Down
10 changes: 8 additions & 2 deletions src/scos_tekrsa/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from environs import Env
from scos_actions.settings import *

logger = logging.getLogger(__name__)
env = Env()

CONFIG_DIR = Path(__file__).parent.resolve() / "configs"
Expand All @@ -18,5 +19,10 @@
RUNNING_MIGRATIONS = env.bool("RUNNING_MIGRATIONS", default=False)
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_MODULE = env.str("SIGAN_MODULE", default=None)
SIGAN_CLASS = env.str("SIGAN_CLASS", default=None)
if RUNNING_TESTS:
SIGAN_MODULE = "scos_tekrsa.hardware.tekrsa_sigan"
SIGAN_CLASS = "TekRSASigan"
logger.debug(f"scos-tekrsa: SIGAN_MODULE:{SIGAN_MODULE}")
logger.debug(f"scos-tekrsa: SIGAN_CLASS:{SIGAN_CLASS}")

0 comments on commit 62565d7

Please sign in to comment.