spacr 0.0.61__py3-none-any.whl → 0.0.62__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.
- spacr/__init__.py +9 -2
- {spacr-0.0.61.dist-info → spacr-0.0.62.dist-info}/METADATA +1 -1
- {spacr-0.0.61.dist-info → spacr-0.0.62.dist-info}/RECORD +7 -7
- {spacr-0.0.61.dist-info → spacr-0.0.62.dist-info}/LICENSE +0 -0
- {spacr-0.0.61.dist-info → spacr-0.0.62.dist-info}/WHEEL +0 -0
- {spacr-0.0.61.dist-info → spacr-0.0.62.dist-info}/entry_points.txt +0 -0
- {spacr-0.0.61.dist-info → spacr-0.0.62.dist-info}/top_level.txt +0 -0
spacr/__init__.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
from spacr.version import version, version_str
|
2
2
|
import logging
|
3
|
+
import torch
|
3
4
|
|
4
5
|
from . import core
|
5
6
|
from . import io
|
@@ -11,7 +12,6 @@ from . import timelapse
|
|
11
12
|
from . import deep_spacr
|
12
13
|
from . import mask_app
|
13
14
|
from . import annotate_app
|
14
|
-
from . import graph_learning
|
15
15
|
from . import gui_utils
|
16
16
|
from . import gui_mask_app
|
17
17
|
from . import gui_measure_app
|
@@ -28,7 +28,6 @@ __all__ = [
|
|
28
28
|
"timelapse",
|
29
29
|
"deep_spacr",
|
30
30
|
"annotate_app",
|
31
|
-
"graph_learning",
|
32
31
|
"gui_utils",
|
33
32
|
"mask_app",
|
34
33
|
"gui_mask_app",
|
@@ -37,5 +36,13 @@ __all__ = [
|
|
37
36
|
"logger"
|
38
37
|
]
|
39
38
|
|
39
|
+
# Check for CUDA GPU availability
|
40
|
+
if torch.cuda.is_available():
|
41
|
+
from . import graph_learning
|
42
|
+
__all__.append("graph_learning")
|
43
|
+
logging.info("CUDA GPU detected. Graph learning module loaded.")
|
44
|
+
else:
|
45
|
+
logging.info("No CUDA GPU detected. Graph learning module not loaded.")
|
46
|
+
|
40
47
|
logging.basicConfig(filename='spacr.log', level=logging.INFO,
|
41
48
|
format='%(asctime)s:%(levelname)s:%(message)s')
|
@@ -1,4 +1,4 @@
|
|
1
|
-
spacr/__init__.py,sha256=
|
1
|
+
spacr/__init__.py,sha256=64QJU2_IUd_40TTKQ2j239rF3PJP_gyciL_rolQOxuU,1144
|
2
2
|
spacr/__main__.py,sha256=L3Dnk-YG3lULeaMxD1mS-_t89g4qWrJ7bnpBvNiQhUE,283
|
3
3
|
spacr/alpha.py,sha256=Y95sLEfpK2OSYKRn3M8eUOU33JJeXfV8zhrC4KnwSTY,35244
|
4
4
|
spacr/annotate_app.py,sha256=_KlDYbnaKr_VvghMWSr6gWbP_lByPghGLiCfEIJ48so,19500
|
@@ -31,9 +31,9 @@ spacr/umap.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
31
|
spacr/utils.py,sha256=zX6zhS7UmCOA2JzBw4uDb-p0SPq5igaeYjzJ56d7hG8,171627
|
32
32
|
spacr/version.py,sha256=axH5tnGwtgSnJHb5IDhiu4Zjk5GhLyAEDRe-rnaoFOA,409
|
33
33
|
spacr/models/cp/toxo_pv_lumen.CP_model,sha256=2y_CindYhmTvVwBH39SNILF3rI3x9SsRn6qrMxHy3l0,26562451
|
34
|
-
spacr-0.0.
|
35
|
-
spacr-0.0.
|
36
|
-
spacr-0.0.
|
37
|
-
spacr-0.0.
|
38
|
-
spacr-0.0.
|
39
|
-
spacr-0.0.
|
34
|
+
spacr-0.0.62.dist-info/LICENSE,sha256=SR-2MeGc6SCM1UORJYyarSWY_A-JaOMFDj7ReSs9tRM,1083
|
35
|
+
spacr-0.0.62.dist-info/METADATA,sha256=gDnAj_Lo8ZAUejMSrwX5JWvvkJKzIdbIxenK36dqXms,4767
|
36
|
+
spacr-0.0.62.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
37
|
+
spacr-0.0.62.dist-info/entry_points.txt,sha256=xncHsqD9MI5wj0_p4mgZlrB8dHm_g_qF0Ggo1c78LqY,315
|
38
|
+
spacr-0.0.62.dist-info/top_level.txt,sha256=GJPU8FgwRXGzKeut6JopsSRY2R8T3i9lDgya42tLInY,6
|
39
|
+
spacr-0.0.62.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|