Skip to content

Commit

Permalink
Raise an error if trying to convert units for RF-ICE timestreams
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Aug 20, 2024
1 parent 79fe7ee commit 0c8a568
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dfmux/python/unittransforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def get_timestream_unit_conversion(from_units, to_units, bolo, wiringmap=None, h
if from_units == to_units:
return 1.

if system not in ["ICE", "DfMux"]:
core.log_fatal(f"Cannot convert data for {system} readout system", unit="dfmux.unittransforms")

I = counts_to_rms_amps(wiringmap, hkmap, bolo, system, tf)
V = bolo_bias_voltage_rms(wiringmap, hkmap, bolo, system, tf)

Expand Down

0 comments on commit 0c8a568

Please sign in to comment.