spacr 0.0.61__py3-none-any.whl → 0.0.63__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 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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spacr
3
- Version: 0.0.61
3
+ Version: 0.0.63
4
4
  Summary: Spatial phenotype analysis of crisp screens (SpaCr)
5
5
  Home-page: https://github.com/EinarOlafsson/spacr
6
6
  Author: Einar Birnir Olafsson
@@ -10,35 +10,35 @@ Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Operating System :: OS Independent
11
11
  License-File: LICENSE
12
12
  Requires-Dist: dgl
13
- Requires-Dist: torch >=2.2.1
14
- Requires-Dist: torchvision >=0.17.1
15
- Requires-Dist: torch-geometric >=2.5.1
13
+ Requires-Dist: torch <3.0,>=2.2.1
14
+ Requires-Dist: torchvision <1.0,>=0.17.1
15
+ Requires-Dist: torch-geometric <3.0,>=2.5.1
16
16
  Requires-Dist: numpy <2.0,>=1.26.4
17
- Requires-Dist: pandas >=2.2.1
18
- Requires-Dist: statsmodels >=0.14.1
19
- Requires-Dist: scikit-image >=0.22.0
20
- Requires-Dist: scikit-learn >=1.4.1
21
- Requires-Dist: seaborn >=0.13.2
22
- Requires-Dist: matplotlib >=3.8.3
23
- Requires-Dist: shap >=0.45.0
24
- Requires-Dist: pillow >=10.2.0
25
- Requires-Dist: imageio >=2.34.0
26
- Requires-Dist: scipy >=1.12.0
27
- Requires-Dist: ipywidgets >=8.1.2
28
- Requires-Dist: mahotas >=1.4.13
29
- Requires-Dist: btrack >=0.6.5
30
- Requires-Dist: trackpy >=0.6.2
31
- Requires-Dist: cellpose >=3.0.6
32
- Requires-Dist: IPython >=8.18.1
33
- Requires-Dist: opencv-python-headless >=4.9.0.80
34
- Requires-Dist: umap-learn >=0.5.6
35
- Requires-Dist: ttkthemes >=3.2.2
36
- Requires-Dist: xgboost >=2.0.3
37
- Requires-Dist: PyWavelets >=1.6.0
38
- Requires-Dist: torchcam >=0.4.0
17
+ Requires-Dist: pandas <3.0,>=2.2.1
18
+ Requires-Dist: statsmodels <1.0,>=0.14.1
19
+ Requires-Dist: scikit-image <1.0,>=0.22.0
20
+ Requires-Dist: scikit-learn <2.0,>=1.4.1
21
+ Requires-Dist: seaborn <1.0,>=0.13.2
22
+ Requires-Dist: matplotlib <4.0,>=3.8.3
23
+ Requires-Dist: shap <1.0,>=0.45.0
24
+ Requires-Dist: pillow <11.0,>=10.2.0
25
+ Requires-Dist: imageio <3.0,>=2.34.0
26
+ Requires-Dist: scipy <2.0,>=1.12.0
27
+ Requires-Dist: ipywidgets <9.0,>=8.1.2
28
+ Requires-Dist: mahotas <2.0,>=1.4.13
29
+ Requires-Dist: btrack <1.0,>=0.6.5
30
+ Requires-Dist: trackpy <1.0,>=0.6.2
31
+ Requires-Dist: cellpose <4.0,>=3.0.6
32
+ Requires-Dist: IPython <9.0,>=8.18.1
33
+ Requires-Dist: opencv-python-headless <5.0,>=4.9.0.80
34
+ Requires-Dist: umap-learn <1.0,>=0.5.6
35
+ Requires-Dist: ttkthemes <4.0,>=3.2.2
36
+ Requires-Dist: xgboost <3.0,>=2.0.3
37
+ Requires-Dist: PyWavelets <2.0,>=1.6.0
38
+ Requires-Dist: torchcam <1.0,>=0.4.0
39
39
  Requires-Dist: ttf-opensans >=2020.10.30
40
- Requires-Dist: customtkinter >=5.2.2
41
- Requires-Dist: lxml >=5.1.0
40
+ Requires-Dist: customtkinter <6.0,>=5.2.2
41
+ Requires-Dist: lxml <6.0,>=5.1.0
42
42
  Provides-Extra: dev
43
43
  Requires-Dist: pytest >=3.9 ; extra == 'dev'
44
44
  Provides-Extra: full
@@ -1,4 +1,4 @@
1
- spacr/__init__.py,sha256=xN6y7zYr7wqDxqYQNVFPJqwuqs7heANFktXmwzzBPFw,889
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.61.dist-info/LICENSE,sha256=SR-2MeGc6SCM1UORJYyarSWY_A-JaOMFDj7ReSs9tRM,1083
35
- spacr-0.0.61.dist-info/METADATA,sha256=jRXG3_RKp05AG3lHPIJvbvPEulGvjf-Pe6A9Sx1BSWw,4767
36
- spacr-0.0.61.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
37
- spacr-0.0.61.dist-info/entry_points.txt,sha256=xncHsqD9MI5wj0_p4mgZlrB8dHm_g_qF0Ggo1c78LqY,315
38
- spacr-0.0.61.dist-info/top_level.txt,sha256=GJPU8FgwRXGzKeut6JopsSRY2R8T3i9lDgya42tLInY,6
39
- spacr-0.0.61.dist-info/RECORD,,
34
+ spacr-0.0.63.dist-info/LICENSE,sha256=SR-2MeGc6SCM1UORJYyarSWY_A-JaOMFDj7ReSs9tRM,1083
35
+ spacr-0.0.63.dist-info/METADATA,sha256=_j5PQ3DVAv1_I5HB_Q2y123szio5IrzBEbltvAvmKSw,4903
36
+ spacr-0.0.63.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
37
+ spacr-0.0.63.dist-info/entry_points.txt,sha256=xncHsqD9MI5wj0_p4mgZlrB8dHm_g_qF0Ggo1c78LqY,315
38
+ spacr-0.0.63.dist-info/top_level.txt,sha256=GJPU8FgwRXGzKeut6JopsSRY2R8T3i9lDgya42tLInY,6
39
+ spacr-0.0.63.dist-info/RECORD,,
File without changes