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.
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/PKG-INFO +1 -1
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/tables/sequence.py +7 -10
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/tables/table.py +4 -4
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation.egg-info/PKG-INFO +1 -1
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/setup.py +1 -1
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/tests/test_stable.py +1 -8
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/LICENSE +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/README.md +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/__init__.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/analysis/__init__.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/analysis/base_spectrum.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/analysis/process_report.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/analysis/spec_utils.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/analysis/utils.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/__init__.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/__init__.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/comm.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/devices/__init__.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/devices/column.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/devices/dad.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/devices/device.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/devices/injector.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/devices/pump.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/tables/__init__.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/tables/method.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/tables/ms.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/hplc.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/generated/__init__.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/generated/dad_method.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/generated/pump_method.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/__init__.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/chromatogram.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/injector_types.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/macro.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/method_types.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/parsing.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/pump_types.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/sequence_types.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/table_types.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/utils/tray_types.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation.egg-info/SOURCES.txt +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation.egg-info/dependency_links.txt +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation.egg-info/requires.txt +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation.egg-info/top_level.txt +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pyproject.toml +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/setup.cfg +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/tests/__init__.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/tests/constants.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/tests/test_nightly.py +0 -0
- {pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/tests/test_runs_stable.py +0 -0
@@ -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
|
-
|
196
|
-
|
197
|
-
|
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
|
-
|
199
|
+
potential_folders = sorted(list(filter(lambda d: parent_dir in d, subdirs)))
|
200
|
+
if len(potential_folders) > 0:
|
201
201
|
break
|
202
|
-
|
203
|
-
|
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
|
-
|
261
|
+
potential_folders = []
|
262
262
|
for d in self.data_dirs:
|
263
263
|
subdirs = [x[0] for x in os.walk(d)]
|
264
|
-
|
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(
|
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)
|
@@ -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.
|
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:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/analysis/base_spectrum.py
RENAMED
File without changes
|
{pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/analysis/process_report.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/__init__.py
RENAMED
File without changes
|
{pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/comm.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/control/controllers/tables/ms.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation/generated/pump_method.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pychemstation-0.7.0.dev1 → pychemstation-0.7.0.dev2}/pychemstation.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|