Skip to content

Commit

Permalink
Set downsample_factor and filter_disable in stream_g3_on
Browse files Browse the repository at this point in the history
  • Loading branch information
simonscryo committed Jun 13, 2024
1 parent 73b15fa commit f872056
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sodetlib/operations/complex_impedance.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,6 @@ def take_complex_impedance(

pb = tqdm(total=len(freqs)*len(bgs), disable=False)
try:
S.set_downsample_factor(1)
S.set_filter_disable(1)
sdl.set_current_mode(S, bgs, 1)
tickle_voltage /= S.high_low_current_ratio

Expand All @@ -560,7 +558,9 @@ def take_complex_impedance(
channel_mask = ds.bands[m] * S.get_number_channels() + ds.channels[m]

ds.sids[bg] = sdl.stream_g3_on(
S, channel_mask=channel_mask, subtype='complex_impedance')
S, channel_mask=channel_mask, subtype='complex_impedance',
downsample_factor=1, filter_disable=True
)
for j, freq in enumerate(freqs):
meas_time = min(1./freq * nperiods, max_meas_time)
S.log(f"Tickle with bg={bg}, freq={freq}")
Expand Down

0 comments on commit f872056

Please sign in to comment.