pychemstation 0.5.8__py3-none-any.whl → 0.5.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -214,6 +214,11 @@ class MethodController(TableController):
214
214
  self.sleepy_send(
215
215
  f'NewColVal RCPMP1Method[1], "Timetable", "SolventCompositionPumpChannel2_Percentage", {row.organic_modifer}')
216
216
 
217
+ self.sleepy_send('InsTabRow RCPMP1Method[1], "Timetable"')
218
+ self.sleepy_send('SetTabText RCPMP1Method[1], "Timetable", 2, "Function", "Flow"')
219
+ self.sleepy_send(f'NewColVal RCPMP1Method[1], "Timetable", "FlowFlow", {row.flow}')
220
+ self.sleepy_send(f'SetTabVal RCPMP1Method[1], "Timetable", 2, "FlowFlow", {row.flow})')
221
+
217
222
  self.send('Sleep 1')
218
223
  self.sleepy_send("DownloadRCMethod PMP1")
219
224
  self.send('Sleep 1')
@@ -231,8 +236,18 @@ class MethodController(TableController):
231
236
  self.send("Sleep 1")
232
237
  self.sleepy_send("DownloadRCMethod PMP1")
233
238
  self.send("Sleep 1")
239
+
240
+ self.sleepy_send('InsTabRow RCPMP1Method[1], "Timetable"')
234
241
  self.get_num_rows()
235
242
 
243
+ self.sleepy_send('SetTabText RCPMP1Method[1], "Timetable", Rows , "Function", "Flow"')
244
+ self.sleepy_send(f'SetTabVal RCPMP1Method[1], "Timetable", Rows , "FlowFlow", {row.flow}')
245
+ self.sleepy_send(f'SetTabVal RCPMP1Method[1], "Timetable", Rows , "Time", {row.start_time}')
246
+
247
+ self.send("Sleep 1")
248
+ self.sleepy_send("DownloadRCMethod PMP1")
249
+ self.send("Sleep 1")
250
+
236
251
  def _update_param(self, method_param: Param):
237
252
  """Change a method parameter, changes what is visibly seen in Chemstation GUI.
238
253
  (changes the first row in the timetable)
@@ -169,7 +169,7 @@ class TableController(abc.ABC):
169
169
  finished_run = polling.poll(
170
170
  lambda: self.controller.check_if_running(),
171
171
  timeout=timeout,
172
- step=18)
172
+ step=50)
173
173
 
174
174
  check_folder = self.fuzzy_match_most_recent_folder(most_recent_folder)
175
175
  if check_folder.is_ok() and finished_run:
@@ -178,9 +178,10 @@ class TableController(abc.ABC):
178
178
  finished_run = polling.poll(
179
179
  lambda: self.controller.check_if_running(),
180
180
  timeout=timeout,
181
- step=12)
181
+ step=50)
182
182
  if finished_run:
183
183
  return check_folder
184
+ return check_folder
184
185
  else:
185
186
  return Err("Run did not complete as expected")
186
187
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pychemstation
3
- Version: 0.5.8
3
+ Version: 0.5.9
4
4
  Summary: Library to interact with Chemstation software, primarily used in Hein lab
5
5
  Home-page: https://gitlab.com/heingroup/device-api/pychemstation
6
6
  Author: Lucy Hao
@@ -8,9 +8,9 @@ pychemstation/control/comm.py,sha256=u44g1hTluQ0yUG93Un-QAshScoDpgYRrZfFTgweP5tY
8
8
  pychemstation/control/hplc.py,sha256=mIq7iN-BkWLSCNGCQPWc19Wjx82_mA_0X5Cy8TJoaUQ,10751
9
9
  pychemstation/control/controllers/__init__.py,sha256=di3ytLIK-35XC_THw4IjNaOtCUTe7GuEOFb-obmREw4,166
10
10
  pychemstation/control/controllers/comm.py,sha256=IU4I_Q42VNCNUlVi93MxCmw2EBY9hiBDkU9FxubKg3c,7441
11
- pychemstation/control/controllers/method.py,sha256=Z_nLu_zXyXhpixDq7xTOljMWVBn9ioFvmSLXhTHXw-Y,13322
11
+ pychemstation/control/controllers/method.py,sha256=rB-7o7ibOhh1ZzkmhJ1YdOz3vbs-CGxjjQKd0-rWlWs,14230
12
12
  pychemstation/control/controllers/sequence.py,sha256=ME9F5nWt-GqL5Qonhe8uNRU0K9oRwGPkPpb_YgqbziI,11318
13
- pychemstation/control/controllers/table_controller.py,sha256=RARvXS2UIfVdinoVOD5aBFQFhEtu95K57bcNgwOKCME,9081
13
+ pychemstation/control/controllers/table_controller.py,sha256=ecMbFWRv5fk7onCWO_NAE8liAYcGrPipFeusuJKQslA,9113
14
14
  pychemstation/control/table/__init__.py,sha256=RgMN4uIWHdNUHpGRBWdzmzAbk7XEKl6Y-qtqWCxzSZU,124
15
15
  pychemstation/control/table/method.py,sha256=THVoGomSXff_CTU3eAYme0BYwkPzab5UgZKsiZ29QSk,12196
16
16
  pychemstation/control/table/sequence.py,sha256=Eri52AnbE3BGthfrRSvYKYciquUzvHKo0lYUTySYYE8,10542
@@ -27,13 +27,13 @@ pychemstation/utils/sequence_types.py,sha256=3VqiUHsfFEdynAxfR-z8JIWBCo7PdnGwTvs
27
27
  pychemstation/utils/table_types.py,sha256=H67-7I96X8Zkm2HygHYttYwG_XuNDmV2AKZW10yZbiA,2418
28
28
  pychemstation/utils/tray_types.py,sha256=UUDED-IAf-8FmPVZezuWSiIQE_HgiZQMV2sTqu4oZw8,177
29
29
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
- tests/constants.py,sha256=lLwT_QaVriivL5llkul6RxXxPriwUp1E-Y3G9fejvbo,2092
30
+ tests/constants.py,sha256=ngjbR4FXfEFkgwsGB7Al4_6m9iUaV8EO7PCTraJ7TOk,2121
31
31
  tests/test_comb.py,sha256=Ef5PD_uEVszCMmpurbzlweSAXzGH6o1rblFqYhGC9r0,5680
32
32
  tests/test_comm.py,sha256=1ZZd0UrIBOKe91wzA-XI-gSRgXmId9mLWYSMeche82Y,2973
33
33
  tests/test_method.py,sha256=uCPpZVYKPz1CNWwhmBo_8TH0ku2V0ZpDZJj3f8iINB4,2440
34
34
  tests/test_sequence.py,sha256=yIQGhUTehtHz6D1ai5W6AlP0zes2icF0VdQ0IGJ2CbQ,4901
35
- pychemstation-0.5.8.dist-info/LICENSE,sha256=9bdF75gIf1MecZ7oymqWgJREVz7McXPG-mjqrTmzzD8,18658
36
- pychemstation-0.5.8.dist-info/METADATA,sha256=26690ZaxEouoE36tiXIBFH7DwfNr4DNTzABSddb3Rlw,4307
37
- pychemstation-0.5.8.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
38
- pychemstation-0.5.8.dist-info/top_level.txt,sha256=zXfKu_4nYWwPHo3OsuhshMNC3SPkcoTGCyODjURaghY,20
39
- pychemstation-0.5.8.dist-info/RECORD,,
35
+ pychemstation-0.5.9.dist-info/LICENSE,sha256=9bdF75gIf1MecZ7oymqWgJREVz7McXPG-mjqrTmzzD8,18658
36
+ pychemstation-0.5.9.dist-info/METADATA,sha256=mExMVySyRewB-QkP_1ah4qv0Hi_ZgKxTuVfLek_DJ1s,4307
37
+ pychemstation-0.5.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
38
+ pychemstation-0.5.9.dist-info/top_level.txt,sha256=zXfKu_4nYWwPHo3OsuhshMNC3SPkcoTGCyODjURaghY,20
39
+ pychemstation-0.5.9.dist-info/RECORD,,
tests/constants.py CHANGED
@@ -40,6 +40,7 @@ def gen_rand_method():
40
40
  org_modifier = int(random.random() * 10)
41
41
  max_run_time = int(random.random() * 10)
42
42
  return MethodTimetable(
43
+ name=DEFAULT_METHOD,
43
44
  first_row=HPLCMethodParams(
44
45
  organic_modifier=org_modifier,
45
46
  flow=round(random.random(), 2),