Skip to content

Commit fe811ef

Browse files
program manual will invalidate static cache
1 parent 3f55bde commit fe811ef

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

labscript_devices/AD9959DDSSweeper/blacs_workers.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def program_manual(self, values):
296296
values (dict): dictionary of dictionaries with keys of active DDS
297297
channels, subkeys of ['freq', 'amp', 'phase']
298298
'''
299-
# invalidate static cache
299+
self.smart_cache = {'static_data' : None, 'dds_data' : None}
300300

301301
for chan in values:
302302
chan_int = int(chan[8:])
@@ -368,15 +368,6 @@ def transition_to_buffered(self, device_name, h5file, initial_values, fresh):
368368
'amp' : amp,
369369
'phase' : phase,
370370
}
371-
372-
else:
373-
self.logger.debug(f'Setting outputs using cache on chan: {chan}')
374-
self.intf.set_output(chan, cache_freq, cache_amp, cache_phase)
375-
self.final_values[f'channel {chan}'] = {
376-
'freq' : cache_freq * self.intf.tuning_words_to_SI['freq'],
377-
'amp' : cache_amp * self.intf.tuning_words_to_SI['amp'],
378-
'phase' : cache_phase * self.intf.tuning_words_to_SI['phase']
379-
}
380371

381372
if dds_data is not None:
382373
self.logger.debug(f'Dynamic Data found')

0 commit comments

Comments
 (0)