pychemstation 0.10.7.dev1__py3-none-any.whl → 0.10.8.dev2__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.
@@ -173,5 +173,5 @@ class CommunicationController(ABCCommunicationController):
173
173
  data_dirs[i] = "C:" + data_dir
174
174
  return method_dir, sequence_dir, data_dirs
175
175
  raise ValueError(
176
- f"One of the method: {method_dir}, sequence: {sequence_dir} or data directories: {data_dirs} could not be found, please provide your own."
177
- )
176
+ f"One of the method: {method_dir}, sequence: {sequence_dir} or data directories: {data_dirs} could not be found, please provide your own."
177
+ )
@@ -445,7 +445,7 @@ class MethodController(RunController):
445
445
  i = 0
446
446
  while folder.is_err() and i < 10:
447
447
  folder = self._fuzzy_match_most_recent_folder(self.data_files[-1], None)
448
- i+=1
448
+ i += 1
449
449
  if folder.is_ok():
450
450
  self.data_files[-1] = folder.ok_value
451
451
  else:
@@ -338,8 +338,10 @@ class SequenceController(RunController):
338
338
  and set(most_recent_folder._data_files) == child_dirs
339
339
  ):
340
340
  most_recent_folder.child_dirs = [
341
- os.path.join(most_recent_folder.dir, f) for f in child_dirs
341
+ os.path.join(most_recent_folder.dir, f) if not os.path.isdir(f) else f for f in child_dirs
342
342
  ]
343
+ for d in most_recent_folder.child_dirs:
344
+ assert os.path.isdir(d)
343
345
  else:
344
346
  potential_folders: List[str] = sorted(
345
347
  list(
@@ -427,6 +429,8 @@ class SequenceController(RunController):
427
429
  ).ok_value
428
430
  )
429
431
  parent_dir = self.data_files[-1]
432
+ if len(parent_dir._data_files) != len(parent_dir.child_dirs) or len(parent_dir.child_dirs) == 0:
433
+ parent_dir = self._fuzzy_match_most_recent_folder(most_recent_folder=parent_dir, child_dirs=None)
430
434
  spectra = self.get_data()
431
435
  reports = []
432
436
  for i, child_dir in enumerate(parent_dir.child_dirs):
@@ -78,10 +78,11 @@ class SequenceTable:
78
78
  for self_row, other_row in zip(self.rows, other.rows):
79
79
  equal &= self_row.vial_location == other_row.vial_location
80
80
  equal &= self_row.data_file == other_row.data_file
81
- equal &= (
82
- os.path.split(os.path.normpath(self_row.method))[-1]
83
- == os.path.split(os.path.normpath(other_row.method))[-1]
84
- )
81
+ if self_row.method and other_row.method:
82
+ equal &= (
83
+ os.path.split(os.path.normpath(self_row.method))[-1]
84
+ == os.path.split(os.path.normpath(other_row.method))[-1]
85
+ )
85
86
  equal &= self_row.num_inj == other_row.num_inj
86
87
  equal &= self_row.inj_vol == other_row.inj_vol
87
88
  equal &= self_row.inj_source == other_row.inj_source
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pychemstation
3
- Version: 0.10.7.dev1
3
+ Version: 0.10.8.dev2
4
4
  Summary: Library to interact with Chemstation software, primarily used in Hein lab
5
5
  Project-URL: Documentation, https://pychemstation-e5a086.gitlab.io/pychemstation.html
6
6
  Project-URL: Repository, https://gitlab.com/heingroup/device-api/pychemstation
@@ -8,10 +8,10 @@ pychemstation/control/__init__.py,sha256=7lSkY7Qa7Ikdz82-2FESc_oqktv7JndsjltCkiM
8
8
  pychemstation/control/hplc.py,sha256=Evmo_D6X2RDmPBFmo3vsKE9kxJzy36Ptz4MyF2IKNzA,13146
9
9
  pychemstation/control/controllers/README.md,sha256=S5cd4NJmPjs6TUH98BtPJJhiS1Lu-mxLCNS786ogOrQ,32
10
10
  pychemstation/control/controllers/__init__.py,sha256=q2TUEie3J-OLlxcGLkG7vIy8fazCEhHm61OGzJPbhD0,179
11
- pychemstation/control/controllers/comm.py,sha256=jdKl9Islwk5tq2h1esm_-8gR4r4xZre0Ma5fMBqRzW4,6660
11
+ pychemstation/control/controllers/comm.py,sha256=ySjgMBIfJ11sygXiZSPp9Rf6ABM4t6JhZRONRj1u2Cc,6652
12
12
  pychemstation/control/controllers/data_aq/__init__.py,sha256=w-Zgbit10niOQfz780ZmRHjUFxV1hMkdui7fOMPqeLA,132
13
- pychemstation/control/controllers/data_aq/method.py,sha256=oxRT3kSjyrDzpS01HgtT9IvGkhq_wHQ_6_63maNhVio,18249
14
- pychemstation/control/controllers/data_aq/sequence.py,sha256=zhilGZXUEttqrux8OI2ieAWktINsrD98fm_b6guZKlo,17209
13
+ pychemstation/control/controllers/data_aq/method.py,sha256=hfLU5bnlmqKc1DPnK-HNpe-S2DollXyNx89hiLwhKWI,18251
14
+ pychemstation/control/controllers/data_aq/sequence.py,sha256=3ieCzs__Z-c1OfbeUuZ41KfZ8gxcWLb0XOEvi7uVLGU,17571
15
15
  pychemstation/control/controllers/devices/__init__.py,sha256=QpgGnLXyWiB96KIB98wMccEi8oOUUaLxvBCyevJzcOg,75
16
16
  pychemstation/control/controllers/devices/injector.py,sha256=LyubM-fqf5ruseGx32deTDK-yevmaTOvdo6YKg2PF7I,4029
17
17
  pychemstation/generated/__init__.py,sha256=xnEs0QTjeuGYO3tVUIy8GDo95GqTV1peEjosGckpOu0,977
@@ -23,7 +23,7 @@ pychemstation/utils/macro.py,sha256=n2CcvB7MY4fl8Ds909K41aqqH7_6DlKK5R4aemLhOdM,
23
23
  pychemstation/utils/method_types.py,sha256=pXfZWmIPnZu3kIdGPxSPJMhL4WSt-u00If1JDUaLaMQ,1555
24
24
  pychemstation/utils/num_utils.py,sha256=OpqZwMPoxTYkpjpinA1CcoQAXDY_0sie6d-hTU547uo,2087
25
25
  pychemstation/utils/parsing.py,sha256=mzdpxrH5ux4-_i4CwZvnIYnIwAnRnOptKb3fZyYJcx0,9307
26
- pychemstation/utils/sequence_types.py,sha256=XBK9FCWgTstmquSL69sQHk4oKb5dimmB-RWvwxU3RV4,2655
26
+ pychemstation/utils/sequence_types.py,sha256=JLGL7kCkPouHN7iBsnZfWe-nSjzF8XqFKzBPyF4SulE,2724
27
27
  pychemstation/utils/spec_utils.py,sha256=BtXgQndZy4kVKsrgEDxwNd0HctypnAt5upB9SOk1D9w,9700
28
28
  pychemstation/utils/table_types.py,sha256=obQrnwDNmy-7r1IDD3N6wY7gUPKfpcM6D9Ow0IN-T48,3609
29
29
  pychemstation/utils/tray_types.py,sha256=UeHM0hUYaNc9giT96ZiGpyWBPQwG-SyLA0rVGzDDAJk,6618
@@ -35,7 +35,7 @@ pychemstation/utils/abc_tables/table.py,sha256=4mfmegCdMppxgpxVDt7oULoxTBVia8_JT
35
35
  pychemstation/utils/mocking/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  pychemstation/utils/mocking/mock_comm.py,sha256=4DcKmUxp-LYNXjywT_za1_GpqKa4sFTj7F2V3r_qsA0,156
37
37
  pychemstation/utils/mocking/mock_hplc.py,sha256=Hx6127C7d3miYGCZYxbN-Q3PU8kpMgXYX2n6we2Twgw,25
38
- pychemstation-0.10.7.dev1.dist-info/METADATA,sha256=4q5zU2Ys8DnagN8Jqi-AFj8Updt1JxCDGAr-g3L9peQ,5757
39
- pychemstation-0.10.7.dev1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
40
- pychemstation-0.10.7.dev1.dist-info/licenses/LICENSE,sha256=9bdF75gIf1MecZ7oymqWgJREVz7McXPG-mjqrTmzzD8,18658
41
- pychemstation-0.10.7.dev1.dist-info/RECORD,,
38
+ pychemstation-0.10.8.dev2.dist-info/METADATA,sha256=oo7RpP4dy0-_1rdACc2TyX5ezQO_hftIv35DcJ0ppQg,5757
39
+ pychemstation-0.10.8.dev2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
40
+ pychemstation-0.10.8.dev2.dist-info/licenses/LICENSE,sha256=9bdF75gIf1MecZ7oymqWgJREVz7McXPG-mjqrTmzzD8,18658
41
+ pychemstation-0.10.8.dev2.dist-info/RECORD,,