Skip to content

Commit

Permalink
Remove testing code which intentionally failed calibrations
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Nov 13, 2024
1 parent fcd790f commit d847e1f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions scos_actions/actions/calibrate_y_factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,6 @@ def calibrate(self, params: dict):
pwr_on_watts, pwr_off_watts, enr_linear, enbw_hz, temp_k
)

# TODO: For testing, manually trigger NaN behavior on certain channels
if params[FREQUENCY] == 3535e6:
gain = np.nan
if params[FREQUENCY] == 3545e6:
noise_figure = np.nan
if params[FREQUENCY] == 3555e6:
noise_figure = np.inf

if np.isfinite(gain) and np.isfinite(noise_figure):
# Update sensor calibration with results
self.sensor.sensor_calibration.update(
Expand Down

0 comments on commit d847e1f

Please sign in to comment.