pychemstation 0.7.0.dev1__tar.gz → 0.7.0.dev2__tar.gz

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.
Files changed (50) hide show
  1. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/PKG-INFO +1 -1
  2. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/tables/sequence.py +7 -10
  3. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/tables/table.py +4 -4
  4. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation.egg-info/PKG-INFO +1 -1
  5. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/setup.py +1 -1
  6. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/tests/test_stable.py +1 -8
  7. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/LICENSE +0 -0
  8. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/README.md +0 -0
  9. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/__init__.py +0 -0
  10. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/analysis/__init__.py +0 -0
  11. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/analysis/base_spectrum.py +0 -0
  12. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/analysis/process_report.py +0 -0
  13. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/analysis/spec_utils.py +0 -0
  14. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/analysis/utils.py +0 -0
  15. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/__init__.py +0 -0
  16. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/__init__.py +0 -0
  17. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/comm.py +0 -0
  18. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/devices/__init__.py +0 -0
  19. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/devices/column.py +0 -0
  20. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/devices/dad.py +0 -0
  21. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/devices/device.py +0 -0
  22. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/devices/injector.py +0 -0
  23. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/devices/pump.py +0 -0
  24. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/tables/__init__.py +0 -0
  25. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/tables/method.py +0 -0
  26. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/tables/ms.py +0 -0
  27. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/hplc.py +0 -0
  28. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/generated/__init__.py +0 -0
  29. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/generated/dad_method.py +0 -0
  30. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/generated/pump_method.py +0 -0
  31. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/__init__.py +0 -0
  32. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/chromatogram.py +0 -0
  33. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/injector_types.py +0 -0
  34. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/macro.py +0 -0
  35. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/method_types.py +0 -0
  36. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/parsing.py +0 -0
  37. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/pump_types.py +0 -0
  38. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/sequence_types.py +0 -0
  39. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/table_types.py +0 -0
  40. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/tray_types.py +0 -0
  41. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation.egg-info/SOURCES.txt +0 -0
  42. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation.egg-info/dependency_links.txt +0 -0
  43. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation.egg-info/requires.txt +0 -0
  44. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation.egg-info/top_level.txt +0 -0
  45. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pyproject.toml +0 -0
  46. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/setup.cfg +0 -0
  47. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/tests/__init__.py +0 -0
  48. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/tests/constants.py +0 -0
  49. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/tests/test_nightly.py +0 -0
  50. {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/tests/test_runs_stable.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pychemstation
3
- Version: 0.7.0.dev1
3
+ Version: 0.7.0.dev2
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
@@ -192,18 +192,15 @@ class SequenceController(TableController):
192
192
  def get_data(self, custom_path: Optional[str] = None,
193
193
  read_uv: bool = False) -> list[AgilentChannelChromatogramData]:
194
194
  parent_dir = self.data_files[-1].dir if not custom_path else custom_path
195
- child_dirs = self.data_files[-1].child_dirs
196
- if len(child_dirs) == 0:
197
- subdirs = []
198
- for d in self.data_dirs:
195
+
196
+ potential_folders = []
197
+ for d in self.data_dirs:
199
198
  subdirs = [x[0] for x in os.walk(d)]
200
- if len(subdirs) > 0:
199
+ potential_folders = sorted(list(filter(lambda d: parent_dir in d, subdirs)))
200
+ if len(potential_folders) > 0:
201
201
  break
202
- assert len(subdirs) > 0
203
- potential_folders = sorted(list(filter(lambda d: parent_dir in d, subdirs)))
204
- self.data_files[-1].child_dirs = [f for f in potential_folders if
205
- parent_dir in f and ".M" not in f and ".D" in f]
206
-
202
+ assert len(potential_folders) > 0
203
+ self.data_files[-1].child_dirs = [f for f in potential_folders if parent_dir in f and ".M" not in f and ".D" in f]
207
204
  spectra: list[Union[AgilentChannelChromatogramData, ChromData]] = []
208
205
  all_w_spectra: list[Union[AgilentChannelChromatogramData, ChromData]] = []
209
206
  for row in self.data_files[-1].child_dirs:
@@ -258,13 +258,13 @@ class TableController(abc.ABC):
258
258
  if os.path.exists(most_recent_folder):
259
259
  return Ok(most_recent_folder)
260
260
 
261
- subdirs = []
261
+ potential_folders = []
262
262
  for d in self.data_dirs:
263
263
  subdirs = [x[0] for x in os.walk(d)]
264
- if len(subdirs) > 0:
264
+ potential_folders = sorted(list(filter(lambda d: most_recent_folder in d, subdirs)))
265
+ if len(potential_folders) > 0:
265
266
  break
266
- assert len(subdirs) > 0
267
- potential_folders = sorted(list(filter(lambda d: most_recent_folder in d, subdirs)))
267
+ assert len(potential_folders) > 0
268
268
  parent_dirs = []
269
269
  for folder in potential_folders:
270
270
  path = os.path.normpath(folder)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pychemstation
3
- Version: 0.7.0.dev1
3
+ Version: 0.7.0.dev2
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
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="pychemstation",
8
- version="0.7.0.dev1",
8
+ version="0.7.0.dev2",
9
9
  author="Lucy Hao",
10
10
  author_email="lhao03@student.ubc.ca",
11
11
  description="Library to interact with Chemstation software, primarily used in Hein lab",
@@ -52,14 +52,6 @@ class TestStable(unittest.TestCase):
52
52
  except Exception as e:
53
53
  self.fail(f"Should not throw error: {e}")
54
54
 
55
- def test_load_method_from_disk(self):
56
- self.hplc_controller.switch_method(DEFAULT_METHOD)
57
- try:
58
- gp_mtd = self.hplc_controller.method_controller.load_from_disk(DEFAULT_METHOD)
59
- self.assertTrue(gp_mtd.params.organic_modifier == 5)
60
- except Exception as e:
61
- self.fail(f"Should have not failed, {e}")
62
-
63
55
  def test_edit_method(self):
64
56
  self.hplc_controller.method_controller.switch(DEFAULT_METHOD)
65
57
  new_method = MethodDetails(name=DEFAULT_METHOD + ".M",
@@ -273,6 +265,7 @@ class TestStable(unittest.TestCase):
273
265
  check_folder = self.hplc_controller.sequence_controller.fuzzy_match_most_recent_folder(
274
266
  most_recent_folder=most_recent_folder)
275
267
  self.assertEqual(check_folder.ok_value, path)
268
+ self.hplc_controller.sequence_controller.data_files[-1].dir = check_folder.ok_value
276
269
  chrom = self.hplc_controller.get_last_run_sequence_data()
277
270
  self.assertTrue(chrom)
278
271
  except Exception: