pychemstation 0.5.13.dev5__py3-none-any.whl → 0.5.13.dev7__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.
@@ -316,7 +316,7 @@ class MethodController(TableController):
316
316
  folder_name = ""
317
317
  hplc_is_running = False
318
318
  tries = 0
319
- while not hplc_is_running and tries < 10:
319
+ while tries < 10 and not hplc_is_running:
320
320
  timestamp = time.strftime(TIME_FORMAT)
321
321
  self.send(Command.RUN_METHOD_CMD.value.format(data_dir=self.data_dir,
322
322
  experiment_name=experiment_name,
@@ -325,8 +325,8 @@ class MethodController(TableController):
325
325
  hplc_is_running = self.check_hplc_is_running()
326
326
  tries += 1
327
327
 
328
- if hplc_is_running:
329
- raise RuntimeError
328
+ if not hplc_is_running:
329
+ raise RuntimeError("Method failed to start.")
330
330
 
331
331
  self.data_files.append(os.path.join(self.data_dir, folder_name))
332
332
 
@@ -11,11 +11,9 @@ from typing import Union, Optional
11
11
 
12
12
  import numpy as np
13
13
  import polling
14
- from polling import MaxCallException
14
+ import rainbow as rb
15
15
  from rainbow import DataFile
16
16
  from result import Result, Ok, Err
17
- import pandas as pd
18
- import rainbow as rb
19
17
 
20
18
  from ....control.controllers.comm import CommunicationController
21
19
  from ....utils.chromatogram import AgilentHPLCChromatogram, AgilentChannelChromatogramData
@@ -211,7 +209,8 @@ class TableController(abc.ABC):
211
209
  try:
212
210
  started_running = polling.poll(lambda: isinstance(self.controller.get_status(), HPLCRunningStatus),
213
211
  step=3, max_tries=10)
214
- except MaxCallException:
212
+ except Exception as e:
213
+ print(e)
215
214
  return False
216
215
  return started_running
217
216
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pychemstation
3
- Version: 0.5.13.dev5
3
+ Version: 0.5.13.dev7
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
@@ -16,9 +16,9 @@ pychemstation/control/controllers/devices/column.py,sha256=SCpCnVFZFUM9LM51MbWkV
16
16
  pychemstation/control/controllers/devices/device.py,sha256=SF1JK93FjmACnYrlKvldX3gEeA21qnXZegeNhc9QJGQ,738
17
17
  pychemstation/control/controllers/devices/pump.py,sha256=DJQh4lNXEraeC1CWrsKmsITOjuYlRI3tih_XRB3F1hg,1404
18
18
  pychemstation/control/controllers/tables/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
- pychemstation/control/controllers/tables/method.py,sha256=zKry7ghUeCMoD2uqvBzO-mMkPo9BQgoj4cos9ZbTx78,16158
19
+ pychemstation/control/controllers/tables/method.py,sha256=Woni_nAEWRZ79wf2WixLnJWZONNdGgZGGV9GG7m0qCQ,16189
20
20
  pychemstation/control/controllers/tables/sequence.py,sha256=vqwJeV38YWdFnaDXvZVOGYl-UCV9lmMbh8Fj5kQ3mqY,8815
21
- pychemstation/control/controllers/tables/table.py,sha256=56kvNb_U8ka_m1r4sk-6yzRiXTT3CuszP7aoX6-TIlE,11886
21
+ pychemstation/control/controllers/tables/table.py,sha256=7HvjtpRlWBgV2rC0mweBeshWfIziyCQFfms9OUXJJyw,11848
22
22
  pychemstation/control/table/__init__.py,sha256=RgMN4uIWHdNUHpGRBWdzmzAbk7XEKl6Y-qtqWCxzSZU,124
23
23
  pychemstation/control/table/method.py,sha256=THVoGomSXff_CTU3eAYme0BYwkPzab5UgZKsiZ29QSk,12196
24
24
  pychemstation/control/table/sequence.py,sha256=Eri52AnbE3BGthfrRSvYKYciquUzvHKo0lYUTySYYE8,10542
@@ -43,8 +43,8 @@ tests/test_comm.py,sha256=EYOpVXzEMQLGhhKYDPO-KaLcJdPSMPTD9Y4jSI0yVQY,2516
43
43
  tests/test_inj.py,sha256=yaPGZoHiOC3ZSgsmrtiqp8QtSo2bMxB9FJhaFlOpad0,1412
44
44
  tests/test_method.py,sha256=r1Q1irqiVzs31QuTYLX3u_A0FpX8rIAQ1L4WOk9tLbk,2473
45
45
  tests/test_sequence.py,sha256=Nz2iqp1cJgw6kcQvnwSkfBmhxpOH62PoEu6o_5rO-PY,4929
46
- pychemstation-0.5.13.dev5.dist-info/LICENSE,sha256=9bdF75gIf1MecZ7oymqWgJREVz7McXPG-mjqrTmzzD8,18658
47
- pychemstation-0.5.13.dev5.dist-info/METADATA,sha256=6tauo37M3ow0m1APJjTtVh3895TnKUhm2vn6OOU0P5M,4376
48
- pychemstation-0.5.13.dev5.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
49
- pychemstation-0.5.13.dev5.dist-info/top_level.txt,sha256=zXfKu_4nYWwPHo3OsuhshMNC3SPkcoTGCyODjURaghY,20
50
- pychemstation-0.5.13.dev5.dist-info/RECORD,,
46
+ pychemstation-0.5.13.dev7.dist-info/LICENSE,sha256=9bdF75gIf1MecZ7oymqWgJREVz7McXPG-mjqrTmzzD8,18658
47
+ pychemstation-0.5.13.dev7.dist-info/METADATA,sha256=0eZ3MqmbNwph2KwBSQUlRG3SKE9b8-WA7cY0q3JDUZ4,4376
48
+ pychemstation-0.5.13.dev7.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
49
+ pychemstation-0.5.13.dev7.dist-info/top_level.txt,sha256=zXfKu_4nYWwPHo3OsuhshMNC3SPkcoTGCyODjURaghY,20
50
+ pychemstation-0.5.13.dev7.dist-info/RECORD,,