accusleepy 0.9.2__tar.gz → 0.9.3__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.
- {accusleepy-0.9.2 → accusleepy-0.9.3}/PKG-INFO +2 -3
- {accusleepy-0.9.2 → accusleepy-0.9.3}/README.md +1 -1
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/fileio.py +5 -11
- accusleepy-0.9.3/accusleepy/gui/images/primary_window.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/pyproject.toml +8 -2
- accusleepy-0.9.2/accusleepy/gui/images/primary_window.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/__init__.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/__main__.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/bouts.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/brain_state_set.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/classification.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/config.json +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/constants.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/__init__.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/dialogs.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/icons/brightness_down.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/icons/brightness_up.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/icons/double_down_arrow.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/icons/double_up_arrow.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/icons/down_arrow.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/icons/home.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/icons/question.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/icons/save.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/icons/up_arrow.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/icons/zoom_in.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/icons/zoom_out.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/images/viewer_window.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/images/viewer_window_annotated.png +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/main.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/manual_scoring.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/mplwidget.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/primary_window.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/primary_window.ui +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/recording_manager.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/resources.qrc +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/resources_rc.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/settings_widget.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/text/dev_guide.md +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/text/main_guide.md +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/text/manual_scoring_guide.md +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/viewer_window.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/gui/viewer_window.ui +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/models.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/multitaper.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/services.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/signal_processing.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/temperature_scaling.py +0 -0
- {accusleepy-0.9.2 → accusleepy-0.9.3}/accusleepy/validation.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: accusleepy
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.3
|
|
4
4
|
Summary: Python implementation of AccuSleep
|
|
5
5
|
License: GPL-3.0-only
|
|
6
6
|
Author: Zeke Barger
|
|
@@ -20,7 +20,6 @@ Requires-Dist: pillow (>=11.1.0,<12.0.0)
|
|
|
20
20
|
Requires-Dist: pre-commit (>=4.2.0,<5.0.0)
|
|
21
21
|
Requires-Dist: pyside6 (>=6.9.0,<6.9.3)
|
|
22
22
|
Requires-Dist: scipy (>=1.15.2,<2.0.0)
|
|
23
|
-
Requires-Dist: toml (>=0.10.2,<0.11.0)
|
|
24
23
|
Requires-Dist: torch (>=2.8.0,<3.0.0)
|
|
25
24
|
Requires-Dist: torchvision (>=0.23.0,<1.0.0)
|
|
26
25
|
Requires-Dist: tqdm (>=4.67.1,<5.0.0)
|
|
@@ -80,7 +79,7 @@ please consult the [developer guide](accusleepy/gui/text/dev_guide.md).
|
|
|
80
79
|
|
|
81
80
|
## Changelog
|
|
82
81
|
|
|
83
|
-
- 0.8.1-0.9.
|
|
82
|
+
- 0.8.1-0.9.3: Improved error handling and code quality
|
|
84
83
|
- 0.8.0: More configurable settings, visual improvements
|
|
85
84
|
- 0.7.1-0.7.3: Bugfixes, code cleanup
|
|
86
85
|
- 0.7.0: More settings can be configured in the UI
|
|
@@ -52,7 +52,7 @@ please consult the [developer guide](accusleepy/gui/text/dev_guide.md).
|
|
|
52
52
|
|
|
53
53
|
## Changelog
|
|
54
54
|
|
|
55
|
-
- 0.8.1-0.9.
|
|
55
|
+
- 0.8.1-0.9.3: Improved error handling and code quality
|
|
56
56
|
- 0.8.0: More configurable settings, visual improvements
|
|
57
57
|
- 0.7.1-0.7.3: Bugfixes, code cleanup
|
|
58
58
|
- 0.7.0: More settings can be configured in the UI
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import os
|
|
3
3
|
from dataclasses import dataclass
|
|
4
|
+
from importlib.metadata import version, PackageNotFoundError
|
|
4
5
|
|
|
5
6
|
import numpy as np
|
|
6
7
|
import pandas as pd
|
|
7
8
|
from PySide6.QtWidgets import QListWidgetItem
|
|
8
|
-
import toml
|
|
9
9
|
|
|
10
10
|
from accusleepy.brain_state_set import BRAIN_STATES_KEY, BrainState, BrainStateSet
|
|
11
11
|
import accusleepy.constants as c
|
|
@@ -267,13 +267,7 @@ def get_version() -> str:
|
|
|
267
267
|
|
|
268
268
|
:return: AccuSleePy package version
|
|
269
269
|
"""
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
"
|
|
274
|
-
)
|
|
275
|
-
if os.path.isfile(toml_file):
|
|
276
|
-
toml_data = toml.load(toml_file)
|
|
277
|
-
if "project" in toml_data and "version" in toml_data["project"]:
|
|
278
|
-
version = toml_data["project"]["version"]
|
|
279
|
-
return version
|
|
270
|
+
try:
|
|
271
|
+
return version("accusleepy")
|
|
272
|
+
except PackageNotFoundError:
|
|
273
|
+
return ""
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "accusleepy"
|
|
3
|
-
version = "0.9.
|
|
3
|
+
version = "0.9.3"
|
|
4
4
|
description = "Python implementation of AccuSleep"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "Zeke Barger",email = "zekebarger@gmail.com"}
|
|
@@ -20,12 +20,12 @@ dependencies = [
|
|
|
20
20
|
"fastparquet (>=2024.11.0,<2025.0.0)",
|
|
21
21
|
"pre-commit (>=4.2.0,<5.0.0)",
|
|
22
22
|
"tqdm (>=4.67.1,<5.0.0)",
|
|
23
|
-
"toml (>=0.10.2,<0.11.0)",
|
|
24
23
|
"pyside6 (>=6.9.0, <6.9.3)",
|
|
25
24
|
]
|
|
26
25
|
|
|
27
26
|
[tool.poetry.group.dev.dependencies]
|
|
28
27
|
pytest = ">=8.3.5,<9.0.0"
|
|
28
|
+
pytest-qt = ">=4.4.0,<5.0.0"
|
|
29
29
|
ruff = ">=0.11.2,<0.12.0"
|
|
30
30
|
|
|
31
31
|
[build-system]
|
|
@@ -34,3 +34,9 @@ build-backend = "poetry.core.masonry.api"
|
|
|
34
34
|
|
|
35
35
|
[tool.ruff]
|
|
36
36
|
extend-exclude = ["*.ipynb"]
|
|
37
|
+
|
|
38
|
+
[tool.pytest.ini_options]
|
|
39
|
+
markers = [
|
|
40
|
+
"gui: marks tests as GUI tests (may require display or xvfb)",
|
|
41
|
+
]
|
|
42
|
+
qt_api = "pyside6"
|
|
Binary file
|
|
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
|