Skip to content

Commit 3d45a7f

Browse files
committed
extend api
1 parent 9b36103 commit 3d45a7f

5 files changed

Lines changed: 57 additions & 12 deletions

File tree

fisher_py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 6ce58b68187a4b2862da8a6f20be0a64b08ed048

native_fisher_py/python/native_fisher_py/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ class MassAnalyzer:
240240
Sector = 6
241241

242242
class TraceType:
243+
MassRange = 0
243244
TIC = 1
244-
MassRange = 2
245-
BasePeak = 3
246-
# ... for parity, we only need TIC and MassRange for now
245+
BasePeak = 2
246+
# ... for parity
247247

248248
if not _IS_SPHINX:
249249
from . import native_fisher_py_backend

native_fisher_py/python/native_fisher_py/data/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,15 @@ class TrayShape:
1111
Unknown = 0
1212
Rectangular = 1
1313
Circular = 2
14+
15+
class ToleranceUnits:
16+
mmu = 1
17+
ppm = 2
18+
19+
class SampleType:
20+
Unknown = 0
21+
Sample = 1
22+
Blank = 2
23+
Standard = 3
24+
QC = 4
25+
Unassigned = 5
Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
11
from ... import TraceType
22

33
class GenericDataTypes:
4-
pass
4+
NULL = 0
5+
CHAR = 1
6+
TRUEFALSE = 2
7+
YESNO = 3
8+
ONOFF = 4
9+
UCHAR = 5
10+
SHORT = 6
11+
USHORT = 7
12+
LONG = 8
13+
ULONG = 9
14+
FLOAT = 10
15+
DOUBLE = 11
16+
CHAR_STRING = 12
17+
WCHAR_STRING = 13
18+
19+
class Range:
20+
def __init__(self, low=0.0, high=0.0):
21+
self.low = low
22+
self.high = high
523

624
class ChromatogramTraceSettings:
7-
def __init__(self, trace_type=1):
8-
self.trace_type = trace_type
25+
def __init__(self, trace_type=TraceType.TIC):
26+
self.trace = trace_type
27+
self.filter = ""
28+
self.mass_ranges = []
929

1030
class ChromatogramSignal:
1131
pass
@@ -16,14 +36,10 @@ class SpectrumPacketType:
1636
class Scan:
1737
pass
1838

19-
class Range:
20-
def __init__(self, low=0.0, high=0.0):
21-
self.low = low
22-
self.high = high
23-
2439
class SampleType:
2540
Unknown = 0
2641
Sample = 1
2742
Blank = 2
2843
Standard = 3
29-
# ...
44+
QC = 4
45+
Unassigned = 5
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
class EstimatorResults:
2+
pass
3+
4+
class PrecisionEstimate:
5+
def __init__(self, raw_file=None, scan_number=0):
6+
self.raw_file = raw_file
7+
self.scan_number = scan_number
8+
9+
def get_ion_time(self):
10+
return 0.0
11+
12+
def get_mass_precision_estimate(self, mass):
13+
return 0.0
14+
15+
def dispose(self):
16+
pass

0 commit comments

Comments
 (0)