Skip to content

Commit

Permalink
Merge pull request #34 from NTIA/fix-scaling
Browse files Browse the repository at this point in the history
Fix mean power scaling in Y-Factor action
  • Loading branch information
dboulware committed Aug 23, 2022
2 parents cbb4232 + 1d93aa5 commit f85b428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scos_actions/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.0.0"
__version__ = "3.0.1"
4 changes: 2 additions & 2 deletions scos_actions/actions/calibrate_y_factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ def calibrate(self, params):
noise_off_data = noise_off_measurement_result["data"]

# Get power values in time domain (division by 2 for RF/baseband conversion)
pwr_on_watts = calculate_power_watts(noise_on_data / 2.0)
pwr_off_watts = calculate_power_watts(noise_off_data / 2.0)
pwr_on_watts = calculate_power_watts(noise_on_data) / 2.0
pwr_off_watts = calculate_power_watts(noise_off_data) / 2.0

# Y-Factor
enr_linear = get_linear_enr(cal_source_idx)
Expand Down

0 comments on commit f85b428

Please sign in to comment.