pychemstation 0.5.6__tar.gz → 0.5.7.dev1__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.5.6 → pychemstation-0.5.7.dev1}/PKG-INFO +1 -1
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/control/controllers/method.py +13 -2
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/control/hplc.py +3 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/utils/method_types.py +2 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/utils/table_types.py +3 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation.egg-info/PKG-INFO +1 -1
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/setup.py +1 -1
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/LICENSE +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/README.md +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/__init__.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/analysis/__init__.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/analysis/base_spectrum.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/analysis/spec_utils.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/analysis/utils.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/control/__init__.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/control/controllers/__init__.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/control/controllers/comm.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/control/controllers/sequence.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/control/controllers/table_controller.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/generated/__init__.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/generated/dad_method.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/generated/pump_method.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/utils/__init__.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/utils/chromatogram.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/utils/macro.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/utils/parsing.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/utils/sequence_types.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/utils/tray_types.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation.egg-info/SOURCES.txt +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation.egg-info/dependency_links.txt +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation.egg-info/requires.txt +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation.egg-info/top_level.txt +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pyproject.toml +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/setup.cfg +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/tests/__init__.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/tests/constants.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/tests/test_comb.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/tests/test_comm.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/tests/test_method.py +0 -0
- {pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/tests/test_sequence.py +0 -0
{pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/control/controllers/method.py
RENAMED
@@ -21,6 +21,14 @@ class MethodController(TableController):
|
|
21
21
|
def __init__(self, controller: CommunicationController, src: str, data_dir: str, table: Table):
|
22
22
|
super().__init__(controller, src, data_dir, table)
|
23
23
|
|
24
|
+
def check_loaded_method(self):
|
25
|
+
time.sleep(2)
|
26
|
+
self.send(Command.GET_METHOD_CMD)
|
27
|
+
time.sleep(2)
|
28
|
+
res = self.receive()
|
29
|
+
if res.is_ok():
|
30
|
+
return res.ok_value.string_response
|
31
|
+
|
24
32
|
def get_method_params(self) -> HPLCMethodParams:
|
25
33
|
return HPLCMethodParams(organic_modifier=self.controller.get_num_val(
|
26
34
|
cmd=TableOperation.GET_OBJ_HDR_VAL.value.format(
|
@@ -50,8 +58,12 @@ class MethodController(TableController):
|
|
50
58
|
def load(self) -> MethodTimetable:
|
51
59
|
rows = self.get_num_rows()
|
52
60
|
if rows.is_ok():
|
61
|
+
self.send(Command.GET_METHOD_CMD)
|
62
|
+
res = self.receive()
|
63
|
+
method_name = res.ok_value.string_response
|
53
64
|
timetable_rows = [self.get_row(r + 1) for r in range(int(rows.ok_value.num_response))]
|
54
65
|
self.table_state = MethodTimetable(
|
66
|
+
name=method_name,
|
55
67
|
first_row=self.get_method_params(),
|
56
68
|
subsequent_rows=timetable_rows)
|
57
69
|
return self.table_state
|
@@ -124,8 +136,7 @@ class MethodController(TableController):
|
|
124
136
|
first_row=HPLCMethodParams(
|
125
137
|
organic_modifier=organic_modifier.percentage,
|
126
138
|
flow=method.flow,
|
127
|
-
maximum_run_time=method.stop_time,
|
128
|
-
temperature=-1),
|
139
|
+
maximum_run_time=method.stop_time),
|
129
140
|
subsequent_rows=[
|
130
141
|
TimeTableEntry(
|
131
142
|
start_time=tte.time,
|
@@ -138,6 +138,9 @@ class HPLCController:
|
|
138
138
|
"""
|
139
139
|
return self.sequence_controller.get_data()
|
140
140
|
|
141
|
+
def check_loaded_method(self) -> str:
|
142
|
+
return self.method_controller.check_loaded_method()
|
143
|
+
|
141
144
|
def load_method(self) -> MethodTimetable:
|
142
145
|
"""
|
143
146
|
Returns the currently loaded method, including its timetable.
|
@@ -6,6 +6,7 @@ from .table_types import RegisterFlag
|
|
6
6
|
from ..generated import Signal, SolventElement
|
7
7
|
|
8
8
|
|
9
|
+
|
9
10
|
class PType(Enum):
|
10
11
|
STR = "str"
|
11
12
|
NUM = "num"
|
@@ -34,6 +35,7 @@ class TimeTableEntry:
|
|
34
35
|
|
35
36
|
@dataclass
|
36
37
|
class MethodTimetable:
|
38
|
+
name: str
|
37
39
|
first_row: HPLCMethodParams
|
38
40
|
subsequent_rows: list[TimeTableEntry]
|
39
41
|
dad_wavelengthes: Optional[list[Signal]] = None
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
5
5
|
|
6
6
|
setuptools.setup(
|
7
7
|
name="pychemstation",
|
8
|
-
version="0.5.
|
8
|
+
version="0.5.7.dev1",
|
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",
|
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.5.6 → pychemstation-0.5.7.dev1}/pychemstation/control/controllers/__init__.py
RENAMED
File without changes
|
File without changes
|
{pychemstation-0.5.6 → pychemstation-0.5.7.dev1}/pychemstation/control/controllers/sequence.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.5.6 → pychemstation-0.5.7.dev1}/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
|
File without changes
|
File without changes
|