chemotools 0.0.23__py3-none-any.whl → 0.0.24__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.
- chemotools/datasets/__init__.py +2 -0
- chemotools/datasets/_base.py +52 -0
- chemotools/datasets/data/__init__.py +0 -0
- chemotools/datasets/data/fermentation_hplc.csv +35 -0
- chemotools/datasets/data/fermentation_spectra.csv +1630 -0
- chemotools/datasets/data/train_hplc.csv +22 -0
- chemotools/datasets/data/train_spectra.csv +22 -0
- chemotools/scatter/extended_multiplicative_scatter_correction.py +5 -0
- {chemotools-0.0.23.dist-info → chemotools-0.0.24.dist-info}/METADATA +2 -1
- {chemotools-0.0.23.dist-info → chemotools-0.0.24.dist-info}/RECORD +14 -6
- {chemotools-0.0.23.dist-info → chemotools-0.0.24.dist-info}/WHEEL +1 -1
- tests/test_datasets.py +30 -0
- {chemotools-0.0.23.dist-info → chemotools-0.0.24.dist-info}/LICENSE +0 -0
- {chemotools-0.0.23.dist-info → chemotools-0.0.24.dist-info}/top_level.txt +0 -0
tests/test_datasets.py
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
import pandas as pd
|
2
|
+
|
3
|
+
from chemotools.datasets import load_fermentation_test, load_fermentation_train
|
4
|
+
|
5
|
+
|
6
|
+
def test_load_fermentation_test():
|
7
|
+
# Arrange
|
8
|
+
|
9
|
+
# Act
|
10
|
+
test_spectra, test_hplc = load_fermentation_test()
|
11
|
+
|
12
|
+
# Assert
|
13
|
+
assert test_spectra.shape == (1629, 1047)
|
14
|
+
assert test_hplc.shape == (34, 6)
|
15
|
+
assert isinstance(test_spectra, pd.DataFrame)
|
16
|
+
assert isinstance(test_hplc, pd.DataFrame)
|
17
|
+
|
18
|
+
def test_load_fermentation_train():
|
19
|
+
# Arrange
|
20
|
+
|
21
|
+
# Act
|
22
|
+
train_spectra, train_hplc = load_fermentation_train()
|
23
|
+
|
24
|
+
# Assert
|
25
|
+
assert train_spectra.shape == (21, 1047)
|
26
|
+
assert train_hplc.shape == (21, 1)
|
27
|
+
assert isinstance(train_spectra, pd.DataFrame)
|
28
|
+
assert isinstance(train_hplc, pd.DataFrame)
|
29
|
+
|
30
|
+
|
File without changes
|
File without changes
|