Skip to content

Commit d69d398

Browse files
committed
Changed sleep times
1 parent 27fcb50 commit d69d398

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

code/tab2.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from functions import (
2727
calibrate_gc,
2828
clear_global_cps_list,
29-
execute_serial_command,
3029
find_peaks_in_gc,
3130
gaussian_correl,
3231
get_device_number,
@@ -387,15 +386,15 @@ def start_new_2d_spectrum(confirm_clicks, start_clicks, filename, compression, t
387386
dispatcher.start()
388387

389388
shproto.dispatcher.process_03('-mode 0')
390-
time.sleep(0.1)
389+
time.sleep(0.4)
391390
logger.info(f'tab2 restores -mode 0\n')
392391

393392
shproto.dispatcher.process_03('-rst')
394-
time.sleep(0.3)
393+
time.sleep(0.4)
395394
logger.info(f'tab2 sends reset command -rst\n')
396395

397396
shproto.dispatcher.process_03('-sta')
398-
time.sleep(0.1)
397+
time.sleep(0.4)
399398
logger.info(f'tab2 sends start command -sta\n')
400399

401400
shproto.dispatcher.process_01(filename, compression, "MAX", t_interval)
@@ -432,7 +431,7 @@ def stop_button(n_clicks, dn):
432431
logger.info('tab2-stop_button device is MAX\n')
433432
spec = threading.Thread(target=shproto.dispatcher.stop)
434433
spec.start()
435-
#time.sleep(0.1)
434+
time.sleep(0.4)
436435
else:
437436
stop_recording()
438437
logger.info('tab2-stop button device is PRO\n')
@@ -1053,7 +1052,6 @@ def update_spectrum_notes(n_clicks, spec_notes, filename):
10531052

10541053
update_json_notes(filename, spec_notes)
10551054

1056-
10571055
logger.info(f'tab2 spectrum notes updated {spec_notes}\n')
10581056

10591057
confirmation = f"Spectrum notes and calibration written to {filename}.json"

0 commit comments

Comments
 (0)