quends 0.1.0__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.
- quends/__init__.py +85 -0
- quends/__main__.py +8 -0
- quends/base/__init__.py +44 -0
- quends/base/data_stream.py +955 -0
- quends/base/ensemble.py +723 -0
- quends/base/ensemble_statistics.py +861 -0
- quends/base/ensemble_utils.py +565 -0
- quends/base/history.py +77 -0
- quends/base/operations.py +44 -0
- quends/base/stationary.py +117 -0
- quends/base/trim.py +1128 -0
- quends/base/utils.py +631 -0
- quends/cli.py +56 -0
- quends/postprocessing/__init__.py +6 -0
- quends/postprocessing/exporter.py +216 -0
- quends/postprocessing/loader.py +53 -0
- quends/postprocessing/plotter.py +734 -0
- quends/postprocessing/writer.py +48 -0
- quends/preprocessing/__init__.py +21 -0
- quends/preprocessing/_utils.py +141 -0
- quends/preprocessing/csv.py +44 -0
- quends/preprocessing/dictionary.py +41 -0
- quends/preprocessing/gx.py +36 -0
- quends/preprocessing/json.py +54 -0
- quends/preprocessing/netcdf.py +97 -0
- quends/preprocessing/numpy.py +96 -0
- quends/workflow/__init__.py +13 -0
- quends/workflow/_common.py +20 -0
- quends/workflow/batch_ensemble_workflow.py +391 -0
- quends/workflow/ensemble_average_workflow.py +330 -0
- quends/workflow/ensemble_statistics_workflow.py +425 -0
- quends/workflow/robust_workflow.py +410 -0
- quends-0.1.0.dist-info/METADATA +54 -0
- quends-0.1.0.dist-info/RECORD +38 -0
- quends-0.1.0.dist-info/WHEEL +5 -0
- quends-0.1.0.dist-info/entry_points.txt +2 -0
- quends-0.1.0.dist-info/licenses/LICENSE +30 -0
- quends-0.1.0.dist-info/top_level.txt +1 -0
quends/__init__.py
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# quends/__init__.py
|
|
2
|
+
|
|
3
|
+
__version__ = "0.1.0"
|
|
4
|
+
|
|
5
|
+
# Importing classes and functions from base module
|
|
6
|
+
from .base.data_stream import DataStream
|
|
7
|
+
from .base.ensemble import Ensemble
|
|
8
|
+
from .base.operations import DataStreamOperation
|
|
9
|
+
from .base.stationary import MakeDataStreamStationaryOperation
|
|
10
|
+
from .base.trim import (
|
|
11
|
+
IQRTrimStrategy,
|
|
12
|
+
MeanVariationTrimStrategy,
|
|
13
|
+
NoiseThresholdTrimStrategy,
|
|
14
|
+
QuantileTrimStrategy,
|
|
15
|
+
RollingVarianceThresholdTrimStrategy,
|
|
16
|
+
RollingVarianceTrimStrategy,
|
|
17
|
+
SSSStartTrimStrategy,
|
|
18
|
+
SelfConsistentTrimStrategy,
|
|
19
|
+
StandardDeviationTrimStrategy,
|
|
20
|
+
ThresholdTrimStrategy,
|
|
21
|
+
TrimDataStreamOperation,
|
|
22
|
+
TrimStrategy,
|
|
23
|
+
build_trim_strategy,
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
# Importing classes and functions from postprocessing module
|
|
27
|
+
from .postprocessing.exporter import Exporter
|
|
28
|
+
from .postprocessing.plotter import Plotter
|
|
29
|
+
|
|
30
|
+
# Importing functions from preprocessing module
|
|
31
|
+
from .preprocessing.csv import from_csv
|
|
32
|
+
from .preprocessing.dictionary import from_dict
|
|
33
|
+
from .preprocessing.gx import from_gx
|
|
34
|
+
from .preprocessing.json import from_json
|
|
35
|
+
from .preprocessing.netcdf import from_netcdf
|
|
36
|
+
from .preprocessing.numpy import from_numpy
|
|
37
|
+
|
|
38
|
+
# Importing classes from workflow module
|
|
39
|
+
from .workflow.batch_ensemble_workflow import BatchEnsembleWorkflow
|
|
40
|
+
from .workflow.ensemble_average_workflow import EnsembleAverageWorkflow
|
|
41
|
+
from .workflow.ensemble_statistics_workflow import EnsembleStatisticsWorkflow
|
|
42
|
+
from .workflow.robust_workflow import RobustWorkflow
|
|
43
|
+
|
|
44
|
+
# Optionally, you can define the __all__ variable to specify what is exported
|
|
45
|
+
# when using 'from quends import *'
|
|
46
|
+
__all__ = [
|
|
47
|
+
# Core data containers
|
|
48
|
+
"DataStream",
|
|
49
|
+
"Ensemble",
|
|
50
|
+
# Postprocessing
|
|
51
|
+
"Exporter",
|
|
52
|
+
"Plotter",
|
|
53
|
+
# Preprocessing loaders
|
|
54
|
+
"from_csv",
|
|
55
|
+
"from_dict",
|
|
56
|
+
"from_gx",
|
|
57
|
+
"from_json",
|
|
58
|
+
"from_netcdf",
|
|
59
|
+
"from_numpy",
|
|
60
|
+
# Workflow
|
|
61
|
+
"RobustWorkflow",
|
|
62
|
+
"EnsembleAverageWorkflow",
|
|
63
|
+
"EnsembleStatisticsWorkflow",
|
|
64
|
+
"BatchEnsembleWorkflow",
|
|
65
|
+
# Trim — canonical entry point
|
|
66
|
+
"build_trim_strategy",
|
|
67
|
+
# Trim — strategy classes (concrete)
|
|
68
|
+
"IQRTrimStrategy",
|
|
69
|
+
"MeanVariationTrimStrategy",
|
|
70
|
+
"NoiseThresholdTrimStrategy",
|
|
71
|
+
"QuantileTrimStrategy",
|
|
72
|
+
"RollingVarianceThresholdTrimStrategy",
|
|
73
|
+
"SelfConsistentTrimStrategy",
|
|
74
|
+
# Trim — aliases (backward compat)
|
|
75
|
+
"StandardDeviationTrimStrategy",
|
|
76
|
+
"ThresholdTrimStrategy",
|
|
77
|
+
"RollingVarianceTrimStrategy",
|
|
78
|
+
"SSSStartTrimStrategy",
|
|
79
|
+
# Trim — operation + ABC
|
|
80
|
+
"TrimStrategy",
|
|
81
|
+
"TrimDataStreamOperation",
|
|
82
|
+
# Other operations
|
|
83
|
+
"DataStreamOperation",
|
|
84
|
+
"MakeDataStreamStationaryOperation",
|
|
85
|
+
]
|
quends/__main__.py
ADDED
quends/base/__init__.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# base/__init__.py
|
|
2
|
+
|
|
3
|
+
from .data_stream import DataStream
|
|
4
|
+
from .ensemble import Ensemble
|
|
5
|
+
from .history import DataStreamHistory, DataStreamHistoryEntry
|
|
6
|
+
from .operations import DataStreamOperation
|
|
7
|
+
from .stationary import MakeDataStreamStationaryOperation
|
|
8
|
+
from .trim import (
|
|
9
|
+
IQRTrimStrategy,
|
|
10
|
+
MeanVariationTrimStrategy,
|
|
11
|
+
NoiseThresholdTrimStrategy,
|
|
12
|
+
QuantileTrimStrategy,
|
|
13
|
+
RollingVarianceThresholdTrimStrategy,
|
|
14
|
+
RollingVarianceTrimStrategy,
|
|
15
|
+
SSSStartTrimStrategy,
|
|
16
|
+
SelfConsistentTrimStrategy,
|
|
17
|
+
StandardDeviationTrimStrategy,
|
|
18
|
+
ThresholdTrimStrategy,
|
|
19
|
+
TrimDataStreamOperation,
|
|
20
|
+
TrimStrategy,
|
|
21
|
+
build_trim_strategy,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"DataStream",
|
|
26
|
+
"Ensemble",
|
|
27
|
+
"DataStreamHistory",
|
|
28
|
+
"DataStreamHistoryEntry",
|
|
29
|
+
"DataStreamOperation",
|
|
30
|
+
"MakeDataStreamStationaryOperation",
|
|
31
|
+
"TrimStrategy",
|
|
32
|
+
"TrimDataStreamOperation",
|
|
33
|
+
"build_trim_strategy",
|
|
34
|
+
"QuantileTrimStrategy",
|
|
35
|
+
"NoiseThresholdTrimStrategy",
|
|
36
|
+
"RollingVarianceThresholdTrimStrategy",
|
|
37
|
+
"MeanVariationTrimStrategy",
|
|
38
|
+
"SelfConsistentTrimStrategy",
|
|
39
|
+
"IQRTrimStrategy",
|
|
40
|
+
"StandardDeviationTrimStrategy",
|
|
41
|
+
"ThresholdTrimStrategy",
|
|
42
|
+
"RollingVarianceTrimStrategy",
|
|
43
|
+
"SSSStartTrimStrategy",
|
|
44
|
+
]
|