Skip to content
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

Make actions set RF path #36

Merged
merged 14 commits into from
Sep 8, 2022
Merged

Make actions set RF path #36

merged 14 commits into from
Sep 8, 2022

Conversation

aromanielloNTIA
Copy link
Member

@aromanielloNTIA aromanielloNTIA commented Aug 25, 2022

Addresses #35

  • Add rf_path as a required configuration parameter for time domain IQ and single frequency FFT actions if a preselector is defined in the sensor definition file
  • Set the configured rf_path before measurement in time domain IQ and single frequency FFT actions

Important:
YAML configs will need to be updated in order to run these actions using a preselector.

  • Add rf_path: antenna (or whatever the name of the desired RF path in the preselector configuration file is) to the YAML config of any M4/IQ actions.
  • Add noise_diode_on: noise_diode_on and noise_diode_off: noise_diode_off (or whatever the names of the desired states of the preselector are) to the YAML config of any Y-Factor calibration actions.

@aromanielloNTIA aromanielloNTIA added the bug Something isn't working label Aug 25, 2022
Copy link
Contributor

@dboulware dboulware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of these changes are not needed as the existing implementation will handle setting the preselector state if rf_path is in the measurement params. I would recommend we get rid of the unnecessary changes, keep the changes in settings, and consider raising an exception in the base actions configure_preselector method if the sensor has a preselector and no rf_path is specified in the measurment params, or perhaps if the preselector has multiple paths and no rf path is specified.

scos_actions/actions/acquire_single_freq_fft.py Outdated Show resolved Hide resolved
scos_actions/actions/acquire_single_freq_fft.py Outdated Show resolved Hide resolved
scos_actions/actions/acquire_single_freq_tdomain_iq.py Outdated Show resolved Hide resolved
scos_actions/actions/acquire_single_freq_tdomain_iq.py Outdated Show resolved Hide resolved
scos_actions/actions/acquire_stepped_freq_tdomain_iq.py Outdated Show resolved Hide resolved
Copy link
Contributor

@dboulware dboulware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few minor changes. See in-line comments.

scos_actions/actions/acquire_single_freq_tdomain_iq.py Outdated Show resolved Hide resolved
scos_actions/actions/acquire_stepped_freq_tdomain_iq.py Outdated Show resolved Hide resolved
scos_actions/actions/interfaces/action.py Outdated Show resolved Hide resolved
scos_actions/settings.py Outdated Show resolved Hide resolved
@dboulware dboulware self-requested a review September 8, 2022 13:33
Copy link
Contributor

@dboulware dboulware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@dboulware dboulware self-requested a review September 8, 2022 13:33
@aromanielloNTIA aromanielloNTIA merged commit 7422ab8 into master Sep 8, 2022
@aromanielloNTIA aromanielloNTIA deleted the fix-rfpath-notset branch September 8, 2022 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants