masster 0.5.16__py3-none-any.whl → 0.5.18__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.
Potentially problematic release.
This version of masster might be problematic. Click here for more details.
- masster/_version.py +1 -1
- masster/sample/adducts.py +12 -0
- masster/sample/defaults/sample_def.py +30 -6
- masster/sample/h5.py +52 -6
- masster/sample/lib.py +9 -3
- masster/sample/load.py +47 -120
- masster/sample/processing.py +1 -1
- masster/sample/sample.py +5 -3
- masster/sample/sciex.py +60 -646
- masster/sample/thermo.py +801 -0
- masster/study/id.py +3 -1
- masster/study/load.py +15 -792
- masster/study/study.py +1 -0
- masster/wizard/wizard.py +178 -225
- {masster-0.5.16.dist-info → masster-0.5.18.dist-info}/METADATA +3 -4
- {masster-0.5.16.dist-info → masster-0.5.18.dist-info}/RECORD +19 -18
- {masster-0.5.16.dist-info → masster-0.5.18.dist-info}/WHEEL +0 -0
- {masster-0.5.16.dist-info → masster-0.5.18.dist-info}/entry_points.txt +0 -0
- {masster-0.5.16.dist-info → masster-0.5.18.dist-info}/licenses/LICENSE +0 -0
masster/study/id.py
CHANGED
|
@@ -22,7 +22,8 @@ def lib_load(
|
|
|
22
22
|
Args:
|
|
23
23
|
study: Study instance
|
|
24
24
|
lib_source: either a CSV file path (str) or a Lib instance
|
|
25
|
-
polarity: ionization polarity ("positive" or "negative") - used when lib_source is a CSV path
|
|
25
|
+
polarity: ionization polarity ("positive" or "negative") - used when lib_source is a CSV path.
|
|
26
|
+
If None, uses study.polarity automatically.
|
|
26
27
|
adducts: specific adducts to generate - used when lib_source is a CSV path
|
|
27
28
|
iso: isotope generation mode ("13C" to generate 13C isotopes, None for no isotopes)
|
|
28
29
|
|
|
@@ -49,6 +50,7 @@ def lib_load(
|
|
|
49
50
|
polarity = "negative"
|
|
50
51
|
else:
|
|
51
52
|
polarity = "positive" # Default fallback
|
|
53
|
+
study.logger.debug(f"Using study polarity: {polarity}")
|
|
52
54
|
|
|
53
55
|
# Handle string input (CSV file path)
|
|
54
56
|
if isinstance(lib_source, str):
|