-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sea 178 test actions loading #110
Changes from 29 commits
99ecc9f
d13baee
9829efc
835e649
db5ae40
d9e6f88
002ec32
e070087
c054376
ea2eefe
7f79201
322d096
08d72e0
b36f36d
bda63db
062e6ce
3eaf79e
a70ce1b
0d26e5b
5696802
a683cf8
74cac26
adb5383
f7f08b3
ab657a9
c56da56
01c2764
9c0718a
9e600f8
91e3eff
d06098f
7ca107a
3c37524
8d205e5
b43b962
0a8621a
a632242
93a32d0
d310202
876b6a6
9f1b040
6638bfd
8806dec
a58f0eb
a050817
7c0454d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "8.0.1" | ||
__version__ = "9.0.0" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
nasctn_sea_data_product: | ||
name: test_nasctn_sea_data_product | ||
name: test_SEA_CBRS_Measure_Baseline | ||
rf_path: antenna | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this same rf_path: antenna param should be added to all of the test actions to allow them to work with a configurable preselector or without a preselector. Currently, they will all fail on a sensor if it has a configurable preselector. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 8d205e5 |
||
calibration_adjust: False | ||
# IIR filter settings | ||
iir_apply: True | ||
iir_gpass_dB: 0.1 # Max passband ripple below unity gain | ||
iir_gstop_dB: 40 # Minimum stopband attenuation | ||
iir_pb_edge_Hz: 5e6 # Passband edge frequency | ||
iir_sb_edge_Hz: 5.008e6 # Stopband edge frequency | ||
# Mean/Max FFT settings | ||
fft_size: 175 | ||
# FFT settings | ||
nffts: 320e3 | ||
fft_window_type: flattop # See scipy.signal.get_window for supported input | ||
# PFP frame | ||
pfp_frame_period_ms: 10 | ||
# APD downsampling settings | ||
apd_bin_size_dB: 0.5 # Set to 0 or negative for no downsampling | ||
apd_min_bin_dBm: -180 | ||
apd_bin_size_dB: 1.0 # Set to 0 or negative for no downsampling | ||
apd_max_bin_dBm: -30 | ||
apd_min_bin_dBm: -180 | ||
# Time domain power statistics settings | ||
td_bin_size_ms: 10 | ||
# Round all power results to X decimal places | ||
round_to_places: 2 | ||
# Sigan Settings | ||
preamp_enable: True | ||
reference_level: -25 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,18 +3,10 @@ | |
from scos_actions.actions.monitor_sigan import MonitorSignalAnalyzer | ||
from scos_actions.actions.sync_gps import SyncGps | ||
from scos_actions.discover.yaml import load_from_yaml | ||
from scos_actions.settings import ACTION_DEFINITIONS_DIR | ||
from scos_actions.settings import ACTION_DEFINITIONS_DIR, SIGAN_CLASS, SIGAN_MODULE | ||
|
||
actions = { | ||
"logger": Logger(), | ||
} | ||
test_actions = { | ||
"test_sync_gps": SyncGps(parameters={"name": "test_sync_gps"}), | ||
"test_monitor_sigan": MonitorSignalAnalyzer( | ||
parameters={"name": "test_monitor_sigan"} | ||
), | ||
"logger": Logger(), | ||
} | ||
actions = {"logger": Logger()} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we remove logger from the actions? Not a big deal either way. |
||
test_actions = {"logger": Logger()} | ||
|
||
|
||
def init( | ||
|
@@ -33,4 +25,16 @@ def init( | |
|
||
yaml_actions, yaml_test_actions = init() | ||
actions.update(yaml_actions) | ||
test_actions.update(yaml_test_actions) | ||
if ( | ||
SIGAN_MODULE == "scos_actions.hardware.mocks.mock_sigan" | ||
and SIGAN_CLASS == "MockSignalAnalyzer" | ||
): | ||
test_actions.update( | ||
{ | ||
"test_sync_gps": SyncGps(parameters={"name": "test_sync_gps"}), | ||
"test_monitor_sigan": MonitorSignalAnalyzer( | ||
parameters={"name": "test_monitor_sigan"} | ||
), | ||
} | ||
) | ||
test_actions.update(yaml_test_actions) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,9 @@ | |
|
||
|
||
class MockGPS(GPSInterface): | ||
def __init__(self, sigan): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does this need a sigan? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 91e3eff |
||
self.sigan = sigan | ||
|
||
def get_location(timeout_s=1): | ||
logger.warning("Using mock GPS!") | ||
return 39.995118, -105.261572, 1651.0 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,10 @@ | |
logger.debug(f"scos-actions: RUNNING_TESTS:{RUNNING_TESTS}") | ||
FQDN = env("FQDN", None) | ||
logger.debug(f"scos-actions: FQDN:{FQDN}") | ||
SIGAN_MODULE = env.str("SIGAN_MODULE", default="scos_actions.hardware.mocks.mock_sigan") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I would only set the defaults for these when running tests. |
||
logger.debug(f"scos-actions: SIGAN_MODULE:{SIGAN_MODULE}") | ||
SIGAN_CLASS = env.str("SIGAN_CLASS", default="MockSignalAnalyzer") | ||
logger.debug(f"scos-actions: SIGAN_CLASS:{SIGAN_CLASS}") | ||
SIGAN_POWER_SWITCH = env("SIGAN_POWER_SWITCH", default=None) | ||
logger.debug(f"scos-actions: SIGAN_POWER_SWITCH:{SIGAN_POWER_SWITCH}") | ||
SIGAN_POWER_CYCLE_STATES = env("SIGAN_POWER_CYCLE_STATES", default=None) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to either check if the CAL_ADJUST param exists or catch the exception if it doesn't and set it to true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in d06098f