SleePyPhases 0.3.1__tar.gz → 0.4.0__tar.gz
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.
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/PKG-INFO +1 -1
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/PSGEventManager.py +1 -2
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/RecordFeatureExtraction.py +1 -1
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/ExtractFeatures.py +4 -1
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases.egg-info/PKG-INFO +1 -1
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/setup.py +1 -1
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/LICENSE +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/README.md +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/DataManipulation.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/EventScorer.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/FeatureExtraction.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/MultiScorer.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/Plot.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/Plugin.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/PreManipulation.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/Reporter.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/SignalPreprocessing.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/SleepMetaData.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/__init__.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/BuildDataset.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/DataAnalysis.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/DataReport.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/Eval.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/EvalPlotExamples.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/EvalReport.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/ExportMetadataToMeticalDB.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/Extract.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/ExtractEvents.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/ExtractRecordFeatures.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/GatherMetadata.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/Setup.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/TestRun.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/ThresholdOptimisation.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/Training.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/Validation.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/VisualizeConfig.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases/phases/__init__.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases.egg-info/SOURCES.txt +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases.egg-info/dependency_links.txt +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases.egg-info/requires.txt +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/SleePyPhases.egg-info/top_level.txt +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/pyproject.toml +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/setup.cfg +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/__init__.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/conftest.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/__init__.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/test_BuildDataset.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/test_BuildDatasetFolded.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/test_BuildDatasetSegments.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/test_DataManipulation.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/test_Eval.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/test_EventScorer.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/test_Extract.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/test_PreManipulation.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/test_RecordFeatureExtraction.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/test_RecordProcessor.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/test_Setup.py +0 -0
- {sleepyphases-0.3.1 → sleepyphases-0.4.0}/tests/unit/test_SignalPreprocessing.py +0 -0
|
@@ -74,7 +74,7 @@ class PSGEventManager(EventManager):
|
|
|
74
74
|
"SlowEyeMovement",
|
|
75
75
|
"Spindle-eeg",
|
|
76
76
|
],
|
|
77
|
-
"fail": [ # maximal
|
|
77
|
+
"fail": [ # maximal 31 for 32bit integer
|
|
78
78
|
"workingSignal",
|
|
79
79
|
"fail-channel0",
|
|
80
80
|
"fail-channel1",
|
|
@@ -106,7 +106,6 @@ class PSGEventManager(EventManager):
|
|
|
106
106
|
"fail-channel27",
|
|
107
107
|
"fail-channel28",
|
|
108
108
|
"fail-channel29",
|
|
109
|
-
"fail-channel30",
|
|
110
109
|
],
|
|
111
110
|
"limb": ["noneLegmovement", "LegMovement-Left", "LegMovement-Right", "LegMovement"],
|
|
112
111
|
"spo2": [
|
|
@@ -209,10 +209,13 @@ class ExtractFeatures(Phase):
|
|
|
209
209
|
self.features = None
|
|
210
210
|
metadata = self.project.getData("metadata", pd.DataFrame)
|
|
211
211
|
recordIds = metadata["recordId"]
|
|
212
|
-
forceCalculation = self.getConfig("featureExtraction.
|
|
212
|
+
forceCalculation = self.getConfig("featureExtraction.force", False)
|
|
213
213
|
|
|
214
214
|
reqFeatures = {f["name"]: True for f in self.getConfig("featureExtraction.features", [])}
|
|
215
215
|
|
|
216
|
+
recordId = self.getConfig("recordId", False)
|
|
217
|
+
recordIds = [recordId] if recordId else recordIds.iloc
|
|
218
|
+
|
|
216
219
|
for recordId in tqdm(recordIds.iloc):
|
|
217
220
|
if forceCalculation:
|
|
218
221
|
# the parameter forced has no meaning, it is just known to be not in the metadata, so the record will always be recalculated
|
|
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
|
|
5
5
|
|
|
6
6
|
setuptools.setup(
|
|
7
7
|
name="SleePyPhases",
|
|
8
|
-
version="v0.
|
|
8
|
+
version="v0.4.0"[1:],
|
|
9
9
|
author="Franz Ehrlich",
|
|
10
10
|
author_email="fehrlichd@gmail.com",
|
|
11
11
|
description="A framwork for creating deep learning pipelines for sleep data",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|