celldetective 1.5.0b6__py3-none-any.whl → 1.5.0b7__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.
celldetective/_version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.5.0b6"
1
+ __version__ = "1.5.0b7"
@@ -122,15 +122,29 @@ class UnifiedBatchProcess(Process):
122
122
  signal_model = None
123
123
 
124
124
  if self.run_signals:
125
- from celldetective.utils.event_detection import _prep_event_detection_model
126
-
127
125
  try:
126
+ from celldetective.utils.event_detection import (
127
+ _prep_event_detection_model,
128
+ )
129
+
128
130
  logger.info("Loading the event detection model...")
129
131
  self.queue.put({"status": "Loading event detection model..."})
130
132
  model_name = self.signal_args["model_name"]
131
133
  signal_model = _prep_event_detection_model(
132
134
  model_name, use_gpu=self.signal_args.get("gpu", True)
133
135
  )
136
+ except (ImportError, ModuleNotFoundError) as e:
137
+ if "tensorflow" in str(e):
138
+ logger.warning(
139
+ "Tensorflow not found/installed. Signal analysis will be skipped."
140
+ )
141
+ self.run_signals = False
142
+ else:
143
+ logger.error(
144
+ f"Failed to initialize event detection model: {e}",
145
+ exc_info=True,
146
+ )
147
+ self.run_signals = False
134
148
  except Exception as e:
135
149
  logger.error(
136
150
  f"Failed to initialize event detection model: {e}", exc_info=True
@@ -109,7 +109,7 @@ def _prep_cellpose_model(
109
109
  except ImportError as e:
110
110
  raise RuntimeError(
111
111
  "Torch is not installed. Please install it to use this feature.\n"
112
- "You can install the full package with: pip install celldetective[process]\n"
112
+ "You can install the full package with: pip install celldetective[all]\n"
113
113
  ) from e
114
114
 
115
115
  if not use_gpu:
@@ -122,7 +122,7 @@ def _prep_cellpose_model(
122
122
  except ImportError as e:
123
123
  raise RuntimeError(
124
124
  "Cellpose is not installed. Please install it to use this feature.\n"
125
- "You can install the full package with: pip install celldetective[process]\n"
125
+ "You can install the full package with: pip install celldetective[all]\n"
126
126
  "Or specifically: pip install celldetective[cellpose]"
127
127
  ) from e
128
128
 
@@ -48,8 +48,7 @@ def _prep_stardist_model(
48
48
  except ImportError as e:
49
49
  raise RuntimeError(
50
50
  "StarDist is not installed. Please install it to use this feature.\n"
51
- "You can install the full package with: pip install celldetective[process]\n"
52
- "Or specifically: pip install celldetective[stardist]"
51
+ "You can install the full package with: pip install celldetective[all]"
53
52
  ) from e
54
53
 
55
54
  model = StarDist2D(None, name=model_name, basedir=path)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: celldetective
3
- Version: 1.5.0b6
3
+ Version: 1.5.0b7
4
4
  Summary: description
5
5
  Home-page: http://github.com/remyeltorro/celldetective
6
6
  Author: Rémy Torro
@@ -50,10 +50,6 @@ Requires-Dist: natsort
50
50
  Provides-Extra: tensorflow
51
51
  Requires-Dist: tensorflow~=2.15.0; extra == "tensorflow"
52
52
  Requires-Dist: stardist; extra == "tensorflow"
53
- Provides-Extra: process
54
- Requires-Dist: cellpose<3; extra == "process"
55
- Requires-Dist: stardist; extra == "process"
56
- Requires-Dist: tensorflow~=2.15.0; extra == "process"
57
53
  Provides-Extra: all
58
54
  Requires-Dist: cellpose<3; extra == "all"
59
55
  Requires-Dist: stardist; extra == "all"
@@ -1,6 +1,6 @@
1
1
  celldetective/__init__.py,sha256=LfnOyfUnYPGDc8xcsF_PfYEL7-CqAb7BMBPBIWGv84o,666
2
2
  celldetective/__main__.py,sha256=Rzzu9ArxZSgfBVjV-lyn-3oanQB2MumQR6itK5ZaRpA,2597
3
- celldetective/_version.py,sha256=2t7jfGYhecNEZFNHUmz-D7GUPyvfrkDim4ynpi-TYII,24
3
+ celldetective/_version.py,sha256=PxAZ8DovjTTFvob973OaT7yXi4GAYpuAcRntt0ZchLM,24
4
4
  celldetective/events.py,sha256=n15R53c7QZ2wT8gjb0oeNikQbuRBrVVbyNsRCqXjzXA,8166
5
5
  celldetective/exceptions.py,sha256=f3VmIYOthWTiqMEV5xQCox2rw5c5e7yog88h-CcV4oI,356
6
6
  celldetective/extra_properties.py,sha256=s_2R4_El2p-gQNZ_EpgDxgrN3UnRitN7KDKHhyLuoHc,21681
@@ -126,7 +126,7 @@ celldetective/processes/segment_cells.py,sha256=klGl5y3tHbLbQFNAQz0PV1FspmiPC-GH
126
126
  celldetective/processes/track_cells.py,sha256=ndKZpVXonnooOVnHK5AVED5i_i2bZ4FefTt1_dEZS48,15188
127
127
  celldetective/processes/train_segmentation_model.py,sha256=j1aPgR4CzF2OR-9njriNmUStVViiWaiicQA9YWRWOTo,25411
128
128
  celldetective/processes/train_signal_model.py,sha256=HInUHCXNePhfQs8-DQOreJ19LtLkQopvYSyX8tj0mOo,9498
129
- celldetective/processes/unified_process.py,sha256=vHAS_LbtwmlOjKho_FpwDy7WHVgyY38s3X2BtHxep7A,11671
129
+ celldetective/processes/unified_process.py,sha256=xvNrYtZaRgpjEWzrPSYoY6dmqJbC81udDojkHuT4iTc,12251
130
130
  celldetective/regionprops/__init__.py,sha256=ohe9vC7j4lnpKnGXidVo1PVfoQfC8TqCuHTNo8rXmdg,44
131
131
  celldetective/regionprops/_regionprops.py,sha256=spq_Mb43HjHiKqot7yjLJl_jrMTNfIP8NLrPnCEm8Nc,13306
132
132
  celldetective/regionprops/props.json,sha256=sCwACmbh0n-JAw9eve9yV85REukoMBJLsRjxCwTRMm8,2424
@@ -161,12 +161,12 @@ celldetective/utils/parsing.py,sha256=1zpIH9tyULCRmO5Kwzy6yA01fqm5uE_mZKYtondy-V
161
161
  celldetective/utils/resources.py,sha256=3Fz_W0NYWl_Ixc2AjEmkOv5f7ejXerCLJ2z1iWhGWUI,1153
162
162
  celldetective/utils/stats.py,sha256=4TVHRqi38Y0sed-izaMI51sMP0fd5tC5M68EYyfJjkE,3636
163
163
  celldetective/utils/types.py,sha256=lRfWSMVzTkxgoctGGp0NqD551akuxu0ygna7zVGonTg,397
164
- celldetective/utils/cellpose_utils/__init__.py,sha256=XUG6T9RFwJ2H2jrz9eO58gYHjI6vxMe93ZeDD35DChg,5999
164
+ celldetective/utils/cellpose_utils/__init__.py,sha256=g41EiR6p29bHkXQN-SFHymoeaoTEfuozEFSGMuTd30Q,5991
165
165
  celldetective/utils/event_detection/__init__.py,sha256=KX20PwPTevdbZ-25otDy_QTmealcDx5xNCfH2SOVIZM,323
166
166
  celldetective/utils/plots/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
167
167
  celldetective/utils/plots/regression.py,sha256=oUCn29-hp7PxMqC-R0yoL60KMw5ZWpZAIoCDh2ErlcY,1764
168
- celldetective/utils/stardist_utils/__init__.py,sha256=eQiZz7UQbwkFS6zXOJFofoNm2wE7ylt-7hdCOd9uOWc,4304
169
- celldetective-1.5.0b6.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
168
+ celldetective/utils/stardist_utils/__init__.py,sha256=SY2kxFNXSRjXN4ncs3heDdXT3UNk8M3dELJQySysAf4,4231
169
+ celldetective-1.5.0b7.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
170
170
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
171
171
  tests/test_cellpose_fallback.py,sha256=BJZTDFF8sFR1x7rDbvZQ2RQOB1OP6wuFBRfc8zbl5zw,3513
172
172
  tests/test_events.py,sha256=eLFwwEEJfQAdwhews3-fn1HSvzozcNNFN_Qn0gOvQkE,685
@@ -186,8 +186,8 @@ tests/gui/test_enhancements.py,sha256=3x9au_rkQtMZ94DRj3OaEHKPr511RrWqBAUAcNQn1y
186
186
  tests/gui/test_measure_annotator_bugfix.py,sha256=tPfgWNKC0UkvrVssSrUcVDC1qgpzx6l2yCqvKtKYkM4,4544
187
187
  tests/gui/test_new_project.py,sha256=wRjW2vEaZb0LWT-f8G8-Ptk8CW9z8-FDPLpV5uqj6ck,8778
188
188
  tests/gui/test_project.py,sha256=KzAnodIc0Ovta0ARL5Kr5PkOR5euA6qczT_GhEZpyE4,4710
189
- celldetective-1.5.0b6.dist-info/METADATA,sha256=7e7KJTEzTLZx7T0o4ITML6CI6PM8EwXU4ENpB0uymNc,11691
190
- celldetective-1.5.0b6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
191
- celldetective-1.5.0b6.dist-info/entry_points.txt,sha256=2NU6_EOByvPxqBbCvjwxlVlvnQreqZ3BKRCVIKEv3dg,62
192
- celldetective-1.5.0b6.dist-info/top_level.txt,sha256=6rsIKKfGMKgud7HPuATcpq6EhdXwcg_yknBVWn9x4C4,20
193
- celldetective-1.5.0b6.dist-info/RECORD,,
189
+ celldetective-1.5.0b7.dist-info/METADATA,sha256=qOwqT_qSpFnGY0CXpVIFdSUV4atTi3FV4M4Kn57tNAg,11523
190
+ celldetective-1.5.0b7.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
191
+ celldetective-1.5.0b7.dist-info/entry_points.txt,sha256=2NU6_EOByvPxqBbCvjwxlVlvnQreqZ3BKRCVIKEv3dg,62
192
+ celldetective-1.5.0b7.dist-info/top_level.txt,sha256=6rsIKKfGMKgud7HPuATcpq6EhdXwcg_yknBVWn9x4C4,20
193
+ celldetective-1.5.0b7.dist-info/RECORD,,