Skip to content

Commit 4c7f61e

Browse files
committed
changed biasflip default to False, changed relock for IV/dIdV sweep to every point
1 parent 1717774 commit 4c7f61e

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

pytesdaq/processing/_iv_didv_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ def plot_noise_model(self, idx='all', xlims=(10, 2e5), ylims_current=None,
18321832

18331833

18341834
def get_offsets_dict(self, metadata, channel_name, lgcdiagnostics=False,
1835-
lgc_sweepbias_flipped=True):
1835+
lgc_sweepbias_flipped=False):
18361836
"""
18371837
Function to get a dictionary of offsets of i0 and ibias used by
18381838
QETpy to calculate the i0, r0, p0, etc. of a given dIdV.
@@ -1851,7 +1851,7 @@ def get_offsets_dict(self, metadata, channel_name, lgcdiagnostics=False,
18511851
If True, prints out diagnostics
18521852
18531853
lgc_sweepbias_flipped: boolean, optional
1854-
Defaults to True. If True, assumes that the bias for the IV sweep
1854+
Defaults to False. If True, assumes that the bias for the IV sweep
18551855
from which the offset_dict was generated was flipped in polarity
18561856
(i.e. multiplied by negative one). To contradict this, we just
18571857
multiply the ibias_offset by negative one. Defaults to True because

pytesdaq/sequencer/iv_didv.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -304,17 +304,16 @@ def _run_iv_didv(self):
304304
time.sleep(sleeptime_s)
305305

306306

307+
# Relock
308+
if self._do_relock:
309+
310+
# relock each channel
311+
for channel in self._detector_channels:
312+
print('INFO: Relocking channel ' + channel)
313+
self._instrument.relock(detector_channel=channel)
307314

308315
# if step 1: tes zap, relock, zero
309316
if istep==1:
310-
311-
# Relock
312-
if self._do_relock:
313-
314-
# relock each channel
315-
for channel in self._detector_channels:
316-
print('INFO: Relocking channel ' + channel)
317-
self._instrument.relock(detector_channel=channel)
318317

319318
# Zero
320319
if self._do_zero_offset:

0 commit comments

Comments
 (0)