cellects 0.3.7__tar.gz → 0.4.1__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 (63) hide show
  1. {cellects-0.3.7 → cellects-0.4.1}/PKG-INFO +4 -3
  2. {cellects-0.3.7 → cellects-0.4.1}/README.md +3 -2
  3. {cellects-0.3.7 → cellects-0.4.1}/pyproject.toml +1 -1
  4. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/__main__.py +19 -12
  5. cellects-0.4.1/src/cellects/icons/cellects_icon.png +0 -0
  6. {cellects-0.3.7 → cellects-0.4.1}/src/cellects.egg-info/PKG-INFO +4 -3
  7. {cellects-0.3.7 → cellects-0.4.1}/src/cellects.egg-info/SOURCES.txt +1 -0
  8. {cellects-0.3.7 → cellects-0.4.1}/LICENSE +0 -0
  9. {cellects-0.3.7 → cellects-0.4.1}/setup.cfg +0 -0
  10. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/__init__.py +0 -0
  11. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/config/__init__.py +0 -0
  12. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/config/all_vars_dict.py +0 -0
  13. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/core/__init__.py +0 -0
  14. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/core/cellects_paths.py +0 -0
  15. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/core/cellects_threads.py +0 -0
  16. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/core/motion_analysis.py +0 -0
  17. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/core/one_image_analysis.py +0 -0
  18. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/core/program_organizer.py +0 -0
  19. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/core/script_based_run.py +0 -0
  20. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/gui/__init__.py +0 -0
  21. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/gui/advanced_parameters.py +0 -0
  22. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/gui/cellects.py +0 -0
  23. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/gui/custom_widgets.py +0 -0
  24. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/gui/first_window.py +0 -0
  25. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/gui/if_several_folders_window.py +0 -0
  26. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/gui/image_analysis_window.py +0 -0
  27. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/gui/required_output.py +0 -0
  28. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/gui/ui_strings.py +0 -0
  29. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/gui/video_analysis_window.py +0 -0
  30. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/icons/__init__.py +0 -0
  31. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/icons/cellects_icon.icns +0 -0
  32. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/icons/cellects_icon.ico +0 -0
  33. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/image_analysis/__init__.py +0 -0
  34. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/image_analysis/cell_leaving_detection.py +0 -0
  35. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/image_analysis/image_segmentation.py +0 -0
  36. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/image_analysis/morphological_operations.py +0 -0
  37. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/image_analysis/network_functions.py +0 -0
  38. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/image_analysis/one_image_analysis_threads.py +0 -0
  39. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/image_analysis/oscillations_functions.py +0 -0
  40. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/image_analysis/progressively_add_distant_shapes.py +0 -0
  41. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/image_analysis/shape_descriptors.py +0 -0
  42. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/utils/__init__.py +0 -0
  43. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/utils/decorators.py +0 -0
  44. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/utils/formulas.py +0 -0
  45. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/utils/load_display_save.py +0 -0
  46. {cellects-0.3.7 → cellects-0.4.1}/src/cellects/utils/utilitarian.py +0 -0
  47. {cellects-0.3.7 → cellects-0.4.1}/src/cellects.egg-info/dependency_links.txt +0 -0
  48. {cellects-0.3.7 → cellects-0.4.1}/src/cellects.egg-info/entry_points.txt +0 -0
  49. {cellects-0.3.7 → cellects-0.4.1}/src/cellects.egg-info/requires.txt +0 -0
  50. {cellects-0.3.7 → cellects-0.4.1}/src/cellects.egg-info/top_level.txt +0 -0
  51. {cellects-0.3.7 → cellects-0.4.1}/tests/test_based_run.py +0 -0
  52. {cellects-0.3.7 → cellects-0.4.1}/tests/test_cell_leaving_detection.py +0 -0
  53. {cellects-0.3.7 → cellects-0.4.1}/tests/test_formulas.py +0 -0
  54. {cellects-0.3.7 → cellects-0.4.1}/tests/test_image_segmentation.py +0 -0
  55. {cellects-0.3.7 → cellects-0.4.1}/tests/test_load_display_save.py +0 -0
  56. {cellects-0.3.7 → cellects-0.4.1}/tests/test_morphological_operations.py +0 -0
  57. {cellects-0.3.7 → cellects-0.4.1}/tests/test_motion_analysis.py +0 -0
  58. {cellects-0.3.7 → cellects-0.4.1}/tests/test_network_functions.py +0 -0
  59. {cellects-0.3.7 → cellects-0.4.1}/tests/test_one_image_analysis.py +0 -0
  60. {cellects-0.3.7 → cellects-0.4.1}/tests/test_program_organizer.py +0 -0
  61. {cellects-0.3.7 → cellects-0.4.1}/tests/test_progressively_add_distant_shapes.py +0 -0
  62. {cellects-0.3.7 → cellects-0.4.1}/tests/test_shape_descriptors.py +0 -0
  63. {cellects-0.3.7 → cellects-0.4.1}/tests/test_utilitarian.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: cellects
3
- Version: 0.3.7
3
+ Version: 0.4.1
4
4
  Summary: Cell Expansion Computer Tracking Software.
5
5
  Author: Aurèle Boussard
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -725,12 +725,13 @@ Requires-Dist: mkdocs-jupyter; extra == "doc"
725
725
  Cellects: Cell Expansion Computer Tracking Software
726
726
  </h1>
727
727
 
728
+ [![Windows](https://img.shields.io/github/v/release/Aurele-B/Cellects?label=Windows%20Installer&logo=windows&color=blue)](https://github.com/Aurele-B/Cellects/releases/latest/)
729
+ [![macOS](https://img.shields.io/github/v/release/Aurele-B/Cellects?label=macOS%20Installer&logo=apple&color=black)](https://github.com/Aurele-B/Cellects/releases/latest)
728
730
  [![PyPI version](https://img.shields.io/pypi/v/cellects.svg?style=flat-square)](https://pypi.org/project/cellects/)
729
731
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/cellects)
730
732
  [![Python versions](https://img.shields.io/pypi/pyversions/cellects.svg?style=flat-square)](https://pypi.org/project/cellects/)
731
733
  [![License](https://img.shields.io/pypi/l/cellects.svg?style=flat-square)](https://github.com/Aurele-B/cellects/blob/main/LICENSE)
732
734
  [![Stars](https://img.shields.io/github/stars/Aurele-B/cellects.svg?style=flat-square)](https://github.com/Aurele-B/cellects/stargazers)
733
- ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/Aurele-B/Cellects/.github%2Fworkflows%2Frelease.yml)
734
735
  ![Coverage](https://raw.githubusercontent.com/Aurele-B/cellects/gh-pages/badges/coverage.svg)
735
736
 
736
737
  Description
@@ -749,7 +750,7 @@ easy installation and user-friendly interface.
749
750
  ---
750
751
 
751
752
  ## Installation (Short version)
752
- Install using our Windows installer: [Cellects_installer.exe](https://github.com/Aurele-B/Cellects/releases/)
753
+ Install on [Windows (.exe) and macOS (.dmg)](https://github.com/Aurele-B/Cellects/releases/)
753
754
 
754
755
  Or, install via pip:
755
756
  ```bash
@@ -5,12 +5,13 @@
5
5
  Cellects: Cell Expansion Computer Tracking Software
6
6
  </h1>
7
7
 
8
+ [![Windows](https://img.shields.io/github/v/release/Aurele-B/Cellects?label=Windows%20Installer&logo=windows&color=blue)](https://github.com/Aurele-B/Cellects/releases/latest/)
9
+ [![macOS](https://img.shields.io/github/v/release/Aurele-B/Cellects?label=macOS%20Installer&logo=apple&color=black)](https://github.com/Aurele-B/Cellects/releases/latest)
8
10
  [![PyPI version](https://img.shields.io/pypi/v/cellects.svg?style=flat-square)](https://pypi.org/project/cellects/)
9
11
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/cellects)
10
12
  [![Python versions](https://img.shields.io/pypi/pyversions/cellects.svg?style=flat-square)](https://pypi.org/project/cellects/)
11
13
  [![License](https://img.shields.io/pypi/l/cellects.svg?style=flat-square)](https://github.com/Aurele-B/cellects/blob/main/LICENSE)
12
14
  [![Stars](https://img.shields.io/github/stars/Aurele-B/cellects.svg?style=flat-square)](https://github.com/Aurele-B/cellects/stargazers)
13
- ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/Aurele-B/Cellects/.github%2Fworkflows%2Frelease.yml)
14
15
  ![Coverage](https://raw.githubusercontent.com/Aurele-B/cellects/gh-pages/badges/coverage.svg)
15
16
 
16
17
  Description
@@ -29,7 +30,7 @@ easy installation and user-friendly interface.
29
30
  ---
30
31
 
31
32
  ## Installation (Short version)
32
- Install using our Windows installer: [Cellects_installer.exe](https://github.com/Aurele-B/Cellects/releases/)
33
+ Install on [Windows (.exe) and macOS (.dmg)](https://github.com/Aurele-B/Cellects/releases/)
33
34
 
34
35
  Or, install via pip:
35
36
  ```bash
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cellects"
7
- version = "0.3.7"
7
+ version = "0.4.1"
8
8
  description = "Cell Expansion Computer Tracking Software."
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
@@ -9,18 +9,35 @@ loads Cellects icon, and launches the main GUI interface.
9
9
  import sys
10
10
  import logging
11
11
  import coloredlogs
12
- from PySide6 import QtWidgets, QtGui
13
12
  from pathlib import Path
14
13
 
14
+
15
+ def get_icon_path():
16
+ if hasattr(sys, "_MEIPASS"):
17
+ return Path(sys._MEIPASS) / "icons"
18
+ return Path(__file__).parent / "icons"
19
+
20
+
21
+ ICON_DIR = get_icon_path()
22
+
23
+
15
24
  if sys.platform.startswith('win'):
16
25
  try:
17
26
  import ctypes
18
27
  ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("cellects.app")
19
28
  except Exception as e:
20
29
  logging.getLogger(__name__).debug(f"Windows taskbar icon setup failed: {e}")
30
+ icon_path = ICON_DIR / "cellects_icon.ico"
31
+ elif sys.platform == "darwin":
32
+ icon_path = ICON_DIR / "cellects_icon.icns"
33
+ else:
34
+ icon_path = ICON_DIR / "cellects_icon.png"
35
+
36
+ from PySide6 import QtWidgets, QtGui
21
37
 
22
38
  LOGLEVEL = "INFO" # Set to DEBUG for development
23
39
 
40
+
24
41
  def _initialize_coloredlogs(loglevel: str = 'DEBUG') -> None:
25
42
 
26
43
  """Initialize colored console logging with custom format.
@@ -67,17 +84,7 @@ def run_cellects():
67
84
  app = QtWidgets.QApplication([])
68
85
 
69
86
  # Set custom window icon for taskbar (platform-specific handling)
70
- icon = QtGui.QIcon()
71
- if hasattr(sys, "_MEIPASS"):
72
- ICONS_DIR = Path(sys._MEIPASS) / "icons"
73
- else:
74
- ICONS_DIR = Path(__file__).parent / "icons"
75
- platform_icon_path = (
76
- ICONS_DIR / "cellects_icon.ico" if sys.platform.startswith('win')
77
- else ICONS_DIR / "cellects_icon.icns"
78
- )
79
- icon.addPixmap(QtGui.QPixmap(str(platform_icon_path)))
80
- app.setWindowIcon(icon)
87
+ app.setWindowIcon(QtGui.QIcon(str(icon_path)))
81
88
 
82
89
  # Create and display main window
83
90
  session = CellectsMainWidget()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: cellects
3
- Version: 0.3.7
3
+ Version: 0.4.1
4
4
  Summary: Cell Expansion Computer Tracking Software.
5
5
  Author: Aurèle Boussard
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -725,12 +725,13 @@ Requires-Dist: mkdocs-jupyter; extra == "doc"
725
725
  Cellects: Cell Expansion Computer Tracking Software
726
726
  </h1>
727
727
 
728
+ [![Windows](https://img.shields.io/github/v/release/Aurele-B/Cellects?label=Windows%20Installer&logo=windows&color=blue)](https://github.com/Aurele-B/Cellects/releases/latest/)
729
+ [![macOS](https://img.shields.io/github/v/release/Aurele-B/Cellects?label=macOS%20Installer&logo=apple&color=black)](https://github.com/Aurele-B/Cellects/releases/latest)
728
730
  [![PyPI version](https://img.shields.io/pypi/v/cellects.svg?style=flat-square)](https://pypi.org/project/cellects/)
729
731
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/cellects)
730
732
  [![Python versions](https://img.shields.io/pypi/pyversions/cellects.svg?style=flat-square)](https://pypi.org/project/cellects/)
731
733
  [![License](https://img.shields.io/pypi/l/cellects.svg?style=flat-square)](https://github.com/Aurele-B/cellects/blob/main/LICENSE)
732
734
  [![Stars](https://img.shields.io/github/stars/Aurele-B/cellects.svg?style=flat-square)](https://github.com/Aurele-B/cellects/stargazers)
733
- ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/Aurele-B/Cellects/.github%2Fworkflows%2Frelease.yml)
734
735
  ![Coverage](https://raw.githubusercontent.com/Aurele-B/cellects/gh-pages/badges/coverage.svg)
735
736
 
736
737
  Description
@@ -749,7 +750,7 @@ easy installation and user-friendly interface.
749
750
  ---
750
751
 
751
752
  ## Installation (Short version)
752
- Install using our Windows installer: [Cellects_installer.exe](https://github.com/Aurele-B/Cellects/releases/)
753
+ Install on [Windows (.exe) and macOS (.dmg)](https://github.com/Aurele-B/Cellects/releases/)
753
754
 
754
755
  Or, install via pip:
755
756
  ```bash
@@ -31,6 +31,7 @@ src/cellects/gui/video_analysis_window.py
31
31
  src/cellects/icons/__init__.py
32
32
  src/cellects/icons/cellects_icon.icns
33
33
  src/cellects/icons/cellects_icon.ico
34
+ src/cellects/icons/cellects_icon.png
34
35
  src/cellects/image_analysis/__init__.py
35
36
  src/cellects/image_analysis/cell_leaving_detection.py
36
37
  src/cellects/image_analysis/image_segmentation.py
File without changes
File without changes