-
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
Merged
Merged
Changes from 45 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
99ecc9f
only update test actions if using scos-actions mock sigan
jhazentia d13baee
change configure preselector logic
jhazentia 9829efc
configurable cal adjust for data product
jhazentia 835e649
debug log messages
jhazentia db5ae40
only add sensor cal to capture if sensor cal in result
jhazentia d9e6f88
only set cal datetime if cal_adjust
jhazentia 002ec32
check for cal data before gettting cal datetime, memory debug
jhazentia e070087
memory debug
jhazentia c054376
log messages for debug
jhazentia ea2eefe
comment out debug
jhazentia 7f79201
remove debug code
jhazentia 322d096
use cal adjust in sea data product action, don't get cal datetime if …
jhazentia 08d72e0
fix cal_adjust bugs
jhazentia b36f36d
add constructor to mock gps to match actual gps
jhazentia bda63db
fix tests
jhazentia 062e6ce
autoformat code, always add logger to test actions
jhazentia 3eaf79e
use test data product action from scos-tekrsa
jhazentia a70ce1b
fix bug in multi freq IQ action, small change to mock sigan recompute…
jhazentia 0d26e5b
remove "calibration_datetime" from metadata, replaced by Calibration …
jhazentia 5696802
fix m4s graph name
jhazentia a683cf8
revert previous change
jhazentia 74cac26
autoformat, fix format problem
jhazentia adb5383
update formatting to prevent bad autoformat
jhazentia f7f08b3
Merge branch 'master' of https://github.com/NTIA/scos-actions into SE…
jhazentia ab657a9
fix m4s action duration in metadata
jhazentia c56da56
add plugin_name property to sigan iface
jhazentia 01c2764
add docstring
jhazentia 9c0718a
round to convert to int for m4s duration
jhazentia 9e600f8
increment version, autoformat
jhazentia 91e3eff
pass sigan for gps through method calls instead of constructor
jhazentia d06098f
check if CAL_ADJUST param exists, slight logging improvement
jhazentia 7ca107a
Merge branch 'master' of https://github.com/NTIA/scos-actions into SE…
jhazentia 3c37524
fix error from merge
jhazentia 8d205e5
add rf_path to test actions
jhazentia b43b962
autoformat
jhazentia 0a8621a
only check compression_point if cal_adjust
jhazentia a632242
autoformat
jhazentia 93a32d0
change GPS methods to use sensor, add type hints
jhazentia d310202
fix circular import
jhazentia 876b6a6
move sensor overload check from scos-usrp to sensor class
jhazentia 9f1b040
remove clock_rate_lookup_by_sample_rate, remove unused import
jhazentia 6638bfd
only add temperature to cal metadata if it exists
jhazentia 8806dec
only load yaml actions if using scos_actions mock sigan
jhazentia a58f0eb
change version to 10.0.0
jhazentia a050817
fix bug in sync gps action
jhazentia 7c0454d
Address feedback
jhazentia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "9.0.0" | ||
__version__ = "10.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
.../actions/test_nasctn_sea_data_product.yml → ...ctions/test_SEA_CBRS_Measure_Baseline.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ single_frequency_fft: | |
nskip: 15.36e4 | ||
calibration_adjust: False | ||
classification: UNCLASSIFIED | ||
rf_path: antenna |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ stepped_frequency_time_domain_iq: | |
- 10000 | ||
nskip: 15.36e4 | ||
calibration_adjust: False | ||
rf_path: antenna |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( | ||
|
@@ -31,6 +23,18 @@ def init( | |
return yaml_actions, yaml_test_actions | ||
|
||
|
||
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" | ||
): | ||
yaml_actions, yaml_test_actions = init() | ||
actions.update(yaml_actions) | ||
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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 comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 8d205e5