tracyspot 1.0.0__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Sami Chaaban
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ recursive-include tracy/icons *.svg
@@ -0,0 +1,26 @@
1
+ Metadata-Version: 2.1
2
+ Name: tracyspot
3
+ Version: 1.0.0
4
+ Summary: Spot navigator
5
+ Home-page: https://github.com/sami-chaaban/tracy
6
+ Author: Sami Chaaban
7
+ Author-email: sami.chaaban@gmail.com
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: Science/Research
10
+ Classifier: Topic :: Scientific/Engineering :: Visualization
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: OS Independent
16
+ Requires-Python: >=3.10
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+
20
+ # Tracy
21
+
22
+ Kymograph-guided spot navigation.
23
+
24
+ ## License<a name="license"></a>
25
+
26
+ This project is licensed under the MIT License - see the [LICENSE.txt](https://github.com/sami-chaaban/tracy/blob/main/LICENSE.txt) file for details.
@@ -0,0 +1,7 @@
1
+ # Tracy
2
+
3
+ Kymograph-guided spot navigation.
4
+
5
+ ## License<a name="license"></a>
6
+
7
+ This project is licensed under the MIT License - see the [LICENSE.txt](https://github.com/sami-chaaban/tracy/blob/main/LICENSE.txt) file for details.
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools>=42", "wheel"]
3
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,52 @@
1
+ from setuptools import setup, find_packages
2
+ from pathlib import Path
3
+
4
+ this_dir = Path(__file__).parent
5
+ long_description = (this_dir / "README.md").read_text(encoding="utf-8")
6
+
7
+ setup(
8
+ name='tracyspot',
9
+ version='1.0.0',
10
+ description='Spot navigator',
11
+ long_description=long_description,
12
+ long_description_content_type="text/markdown",
13
+ author='Sami Chaaban',
14
+ author_email='sami.chaaban@gmail.com',
15
+ url='https://github.com/sami-chaaban/tracy',
16
+ packages=find_packages(),
17
+ include_package_data=True,
18
+ package_data={
19
+ 'tracy': ['icons/*.svg', 'style.qss']
20
+ },
21
+ install_requires=[
22
+ 'numpy',
23
+ 'PyQt5',
24
+ 'matplotlib',
25
+ 'scipy',
26
+ 'pandas',
27
+ 'tifffile',
28
+ 'read-roi',
29
+ 'roifile',
30
+ ],
31
+ entry_points={
32
+ 'gui_scripts': [
33
+ 'tracy = tracy.__main__:main',
34
+ ],
35
+ },
36
+ classifiers=[
37
+ # Stability & audience
38
+ 'Development Status :: 4 - Beta',
39
+ 'Intended Audience :: Science/Research',
40
+ 'Topic :: Scientific/Engineering :: Visualization',
41
+
42
+ # Supported Python versions
43
+ 'Programming Language :: Python :: 3',
44
+ 'Programming Language :: Python :: 3.10',
45
+ 'Programming Language :: Python :: 3.11',
46
+
47
+ # License & OS
48
+ 'License :: OSI Approved :: MIT License',
49
+ 'Operating System :: OS Independent',
50
+ ],
51
+ python_requires='>=3.10',
52
+ )
@@ -0,0 +1 @@
1
+ __version__ = "1.0.0"
@@ -0,0 +1,77 @@
1
+ #!/usr/bin/env python3
2
+
3
+ import sys, os
4
+ import numpy as np
5
+ from PyQt5.QtWidgets import QApplication
6
+ from PyQt5.QtCore import QFile, QTextStream
7
+ from PyQt5.QtGui import QFontDatabase
8
+ from tracy.navigator import KymographNavigator
9
+
10
+ import matplotlib as mpl
11
+
12
+ mpl.rcParams.update({
13
+ 'font.family': ['Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif'], # fallback list
14
+ 'font.size': 14, # adjust the size to match your UI
15
+ })
16
+
17
+ def main():
18
+ # Create the application instance.
19
+ app = QApplication(sys.argv)
20
+
21
+ # Set the application name and display name.
22
+ app.setApplicationName("Tracy")
23
+ try:
24
+ # If your version of PyQt supports it, this will update the menu title on macOS.
25
+ app.setApplicationDisplayName("Tracy")
26
+ except AttributeError:
27
+ pass
28
+
29
+ # For below, need qss font to be font-family: Helvetica Neue Lt Std, Helvetica Neue, Helvetica, Arial, sans-serif;
30
+ # also, package data needs to include the fonts
31
+
32
+ # font_db = QFontDatabase()
33
+ # family = None
34
+ # for fname in ("HelveticaNeueLTStd-Roman.otf", "HelveticaNeueLTStd-Bd.otf"):
35
+ # path = resource_path(f"fonts/{fname}")
36
+ # fid = font_db.addApplicationFont(path)
37
+ # if fid == -1:
38
+ # print(f"⚠️ Failed to load font: {path}")
39
+ # else:
40
+ # fams = font_db.applicationFontFamilies(fid)
41
+ # print(f"✅ Loaded {fname}, registered as: {fams}")
42
+ # if fams:
43
+ # family = fams[0]
44
+ # if family:
45
+ # default_font = font_db.font(family, "55 Roman", 14)
46
+ # app.setFont(default_font)
47
+ # print(f"✨ App default font set to: '{default_font.family()}', weight={default_font.weight()}")
48
+
49
+ qss_path = resource_path('style.qss')
50
+ app.setStyleSheet(load_stylesheet(qss_path))
51
+
52
+ # Create the main window.
53
+ navigator = KymographNavigator()
54
+
55
+ navigator.showMaximized()
56
+
57
+ # Show the navigator window.
58
+ navigator.show()
59
+
60
+ # Start the application event loop.
61
+ sys.exit(app.exec_())
62
+
63
+ def resource_path(relative):
64
+ if getattr(sys, 'frozen', False):
65
+ base = sys._MEIPASS
66
+ else:
67
+ base = os.path.dirname(__file__)
68
+ return os.path.join(base, relative)
69
+
70
+ def load_stylesheet(path):
71
+ file = QFile(path)
72
+ file.open(QFile.ReadOnly | QFile.Text)
73
+ stream = QTextStream(file)
74
+ return stream.readAll()
75
+
76
+ if __name__ == "__main__":
77
+ main()