masster 0.4.5__py3-none-any.whl → 0.4.9__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/__init__.py +8 -8
- masster/_version.py +1 -1
- masster/chromatogram.py +2 -2
- masster/logger.py +11 -11
- masster/sample/__init__.py +1 -1
- masster/sample/adducts.py +1 -1
- masster/sample/h5.py +7 -7
- masster/sample/lib.py +2 -2
- masster/sample/load.py +8 -8
- masster/sample/parameters.py +1 -1
- masster/sample/plot.py +2 -2
- masster/sample/processing.py +2 -2
- masster/sample/sample.py +86 -86
- masster/sample/save.py +1 -1
- masster/spectrum.py +2 -2
- masster/study/__init__.py +1 -1
- masster/study/export.py +7 -7
- masster/study/h5.py +6 -6
- masster/study/helpers.py +339 -146
- masster/study/id.py +4 -4
- masster/study/load.py +6 -6
- masster/study/plot.py +3 -3
- masster/study/processing.py +3 -3
- masster/study/save.py +1 -1
- masster/study/study.py +98 -98
- masster-0.4.9.dist-info/METADATA +788 -0
- {masster-0.4.5.dist-info → masster-0.4.9.dist-info}/RECORD +30 -36
- {masster-0.4.5.dist-info → masster-0.4.9.dist-info}/WHEEL +1 -2
- masster/data/libs/__pycache__/ccm.cpython-312.pyc +0 -0
- masster/data/libs/__pycache__/urine.cpython-312.pyc +0 -0
- masster/lib/__init__.py +0 -9
- masster/lib/lib.py +0 -598
- masster/study/helpers_optimized.py +0 -359
- masster-0.4.5.dist-info/METADATA +0 -131
- masster-0.4.5.dist-info/top_level.txt +0 -1
- {masster-0.4.5.dist-info → masster-0.4.9.dist-info}/entry_points.txt +0 -0
- {masster-0.4.5.dist-info → masster-0.4.9.dist-info}/licenses/LICENSE +0 -0
masster/study/h5.py
CHANGED
|
@@ -35,8 +35,8 @@ import h5py
|
|
|
35
35
|
import polars as pl
|
|
36
36
|
from tqdm import tqdm
|
|
37
37
|
|
|
38
|
-
from
|
|
39
|
-
from
|
|
38
|
+
from masster.chromatogram import Chromatogram
|
|
39
|
+
from masster.spectrum import Spectrum
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
# Helper functions for HDF5 operations
|
|
@@ -1145,7 +1145,7 @@ def _save_study5_compressed(self, filename):
|
|
|
1145
1145
|
id_group = f.create_group("id")
|
|
1146
1146
|
|
|
1147
1147
|
# Store metadata
|
|
1148
|
-
metadata_group.attrs["format"] = "
|
|
1148
|
+
metadata_group.attrs["format"] = "masster-study-1"
|
|
1149
1149
|
metadata_group.attrs["folder"] = (
|
|
1150
1150
|
str(self.folder) if self.folder is not None else ""
|
|
1151
1151
|
)
|
|
@@ -1387,7 +1387,7 @@ def _save_study5(self, filename):
|
|
|
1387
1387
|
filename (str, optional): Target file name. If None, uses default based on folder.
|
|
1388
1388
|
|
|
1389
1389
|
Stores:
|
|
1390
|
-
- metadata/format (str): Data format identifier ("
|
|
1390
|
+
- metadata/format (str): Data format identifier ("masster-study-1")
|
|
1391
1391
|
- metadata/folder (str): Study default folder path
|
|
1392
1392
|
- metadata/label (str): Study label
|
|
1393
1393
|
- metadata/parameters (str): JSON-serialized parameters dictionary
|
|
@@ -1476,7 +1476,7 @@ def _save_study5(self, filename):
|
|
|
1476
1476
|
id_group = f.create_group("id")
|
|
1477
1477
|
|
|
1478
1478
|
# Store metadata
|
|
1479
|
-
metadata_group.attrs["format"] = "
|
|
1479
|
+
metadata_group.attrs["format"] = "masster-study-1"
|
|
1480
1480
|
metadata_group.attrs["folder"] = (
|
|
1481
1481
|
str(self.folder) if self.folder is not None else ""
|
|
1482
1482
|
)
|
|
@@ -1734,7 +1734,7 @@ def _load_study5(self, filename=None):
|
|
|
1734
1734
|
self.history = {}
|
|
1735
1735
|
|
|
1736
1736
|
# Reconstruct self.parameters from loaded history
|
|
1737
|
-
from
|
|
1737
|
+
from masster.study.defaults.study_def import study_defaults
|
|
1738
1738
|
|
|
1739
1739
|
# Always create a fresh study_defaults object to ensure we have all defaults
|
|
1740
1740
|
self.parameters = study_defaults()
|