small-fish-gui 1.3.1__tar.gz → 1.3.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.
Files changed (38) hide show
  1. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/PKG-INFO +1 -1
  2. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/pyproject.toml +1 -1
  3. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/__init__.py +1 -1
  4. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/pipeline/_napari_wrapper.py +0 -2
  5. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/pipeline/detection.py +8 -7
  6. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/LICENSE +0 -0
  7. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/README.md +0 -0
  8. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/.github/workflows/python-publish.yml +0 -0
  9. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/LICENSE +0 -0
  10. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/README.md +0 -0
  11. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/Segmentation example.jpg +0 -0
  12. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/__main__.py +0 -0
  13. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/gui/__init__.py +0 -0
  14. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/gui/animation.py +0 -0
  15. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/gui/general_help_screenshot.png +0 -0
  16. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/gui/help_module.py +0 -0
  17. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/gui/layout.py +0 -0
  18. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/gui/mapping_help_screenshot.png +0 -0
  19. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/gui/prompts.py +0 -0
  20. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/gui/segmentation_help_screenshot.png +0 -0
  21. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/gui/test.py +0 -0
  22. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/interface/__init__.py +0 -0
  23. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/interface/image.py +0 -0
  24. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/interface/output.py +0 -0
  25. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/interface/parameters.py +0 -0
  26. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/interface/testing.py +0 -0
  27. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/napari_detection_example.png +0 -0
  28. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/pipeline/_colocalisation.py +0 -0
  29. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/pipeline/_custom_errors.py +0 -0
  30. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/pipeline/_preprocess.py +0 -0
  31. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/pipeline/_segmentation.py +0 -0
  32. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/pipeline/_signaltonoise.py +0 -0
  33. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/pipeline/actions.py +0 -0
  34. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/pipeline/main.py +0 -0
  35. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/pipeline/spots.py +0 -0
  36. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/pipeline/test.py +0 -0
  37. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/requirements.txt +0 -0
  38. {small_fish_gui-1.3.1 → small_fish_gui-1.3.3}/src/small_fish_gui/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: small_fish_gui
3
- Version: 1.3.1
3
+ Version: 1.3.3
4
4
  Summary: Small Fish is a python application for the analysis of smFish images. It provides a ready to use graphical interface to combine famous python packages for cell analysis without any need for coding.
5
5
  Project-URL: Homepage, https://github.com/2Echoes/small_fish
6
6
  Project-URL: Issues, https://github.com/2Echoes/small_fish/issues
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "small_fish_gui"
7
- version = "1.3.1"
7
+ version = "1.3.3"
8
8
  authors = [
9
9
  { name="Slimani Floric", email="floric.slimani@live.com" },
10
10
  ]
@@ -38,4 +38,4 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38
38
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
39
 
40
40
  """
41
- __version__ = "1.3.1"
41
+ __version__ = "1.3.3"
@@ -198,8 +198,6 @@ def threshold_selection(
198
198
  To view code for spot selection please have a look at magicgui instance created with `detection._create_threshold_slider` which is then passed to this napari wrapper as 'threshold_slider' argument.
199
199
  """
200
200
 
201
- print(voxel_size)
202
-
203
201
  Viewer = napari.Viewer(title= "Small fish - Threshold selector", ndisplay=2, show=True)
204
202
  Viewer.add_image(
205
203
  data= image,
@@ -327,8 +327,8 @@ def _launch_detection(image, image_input_values: dict) :
327
327
  logfiltered_image=filtered_image,
328
328
  local_maxima=local_maxima,
329
329
  default=threshold,
330
- min=filtered_image[local_maxima].min(),
331
- max=filtered_image[local_maxima].max(),
330
+ min_value=filtered_image[local_maxima].min(),
331
+ max_value=filtered_image[local_maxima].max(),
332
332
  voxel_size=voxel_size
333
333
  )
334
334
 
@@ -746,16 +746,18 @@ def _create_threshold_slider(
746
746
  logfiltered_image : np.ndarray,
747
747
  local_maxima : np.ndarray,
748
748
  default : int,
749
- min : int,
750
- max : int,
749
+ min_value : int,
750
+ max_value : int,
751
751
  voxel_size
752
752
  ) :
753
753
 
754
754
  if isinstance(default, float) : default = round(default)
755
+ min_value = max(min_value,15) #Security to avoid user put too low threshold and crashes Napari if out of memory.
755
756
 
756
757
  @magicgui(
757
- threshold={'widget_type' : 'Slider', 'value' : default, 'min' : min, 'max' : max},
758
- auto_call=True
758
+ threshold={'widget_type' : 'Slider', 'value' : default, 'min' : min_value, 'max' : max_value, 'tracking' : True,},
759
+ auto_call=False,
760
+ call_button= "Apply"
759
761
  )
760
762
  def threshold_slider(threshold: int) -> LayerDataTuple:
761
763
  spots = detection.spots_thresholding(
@@ -764,7 +766,6 @@ def _create_threshold_slider(
764
766
  threshold=threshold
765
767
  )[0]
766
768
 
767
- print(voxel_size)
768
769
  layer_args = {
769
770
  'size': 5,
770
771
  'scale' : voxel_size,
File without changes
File without changes