mirror of
https://github.com/nqrduck/quackseq-limenqr.git
synced 2024-11-18 09:31:01 +00:00
Improved error handling.
This commit is contained in:
parent
f422854857
commit
482b8709a8
1 changed files with 4 additions and 1 deletions
|
@ -57,7 +57,10 @@ class LimeNQRController(SpectrometerController):
|
|||
|
||||
dwell_time = UnitConverter.to_float(dwell_time) * 1e6
|
||||
logger.debug("Dwell time: %s", dwell_time)
|
||||
logger.debug(f"Last tdx value: {measurement_data.tdx[-1]}")
|
||||
if not measurement_data:
|
||||
return None
|
||||
|
||||
logger.debug(f"Last tdx value: {measurement_data.tdx[-1][-1]}")
|
||||
|
||||
if dwell_time:
|
||||
n_data_points = int(measurement_data.tdx[-1][-1] / dwell_time)
|
||||
|
|
Loading…
Reference in a new issue