|
9 | 9 | import time |
10 | 10 | from scipy.optimize import minimize_scalar, curve_fit |
11 | 11 | import numpy as np |
12 | | -import threading |
13 | | -import concurrent.futures |
14 | | -from PyQt6.QtCore import QThreadPool |
15 | | -from autodeer.gui import Worker |
16 | 12 | import os |
17 | 13 | from pathlib import Path |
18 | 14 | import datetime |
@@ -70,7 +66,7 @@ def __init__(self, config_file:dict) -> None: |
70 | 66 | self.bg_data = None |
71 | 67 | self.cur_exp = None |
72 | 68 | self.tuning = False |
73 | | - self.pool = QThreadPool() |
| 69 | + self.pool = None # QThreadPool |
74 | 70 | self.savename = '' |
75 | 71 | self.savefolder = str(Path.home()) |
76 | 72 | self.setup_flag=False |
@@ -146,13 +142,6 @@ def _launch_complex_thread(self,sequence,axID=1,tune=True): |
146 | 142 | self.terminate() |
147 | 143 |
|
148 | 144 | variables = uProgTable_py['variables'] |
149 | | - # print("Creating Thread") |
150 | | - # # thread = threading.Thread(target=step_parameters,args=[self,reduced_seq,py_ax_dim,variables]) |
151 | | - # # self.bg_thread = self.pool.submit(step_parameters, self,reduced_seq,py_ax_dim,variables) |
152 | | - # self.bg_thread = Worker(step_parameters, self,reduced_seq,py_ax_dim,variables) |
153 | | - # self.pool.start(self.bg_thread) |
154 | | - # print("Started Thread") |
155 | | - |
156 | 145 | step_parameters(self,reduced_seq,py_ax_dim,variables) |
157 | 146 | # thread.start() |
158 | 147 |
|
|
0 commit comments