phasorpy 0.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 (85) hide show
  1. phasorpy-0.1/LICENSE.txt +21 -0
  2. phasorpy-0.1/MANIFEST.in +18 -0
  3. phasorpy-0.1/PKG-INFO +78 -0
  4. phasorpy-0.1/README.md +23 -0
  5. phasorpy-0.1/docs/_static/categorical.png +0 -0
  6. phasorpy-0.1/docs/_static/custom-icons.js +16 -0
  7. phasorpy-0.1/docs/_static/logo.png +0 -0
  8. phasorpy-0.1/docs/_static/srgb_spectrum.png +0 -0
  9. phasorpy-0.1/docs/acknowledgments.rst +35 -0
  10. phasorpy-0.1/docs/api/_phasorpy.rst +12 -0
  11. phasorpy-0.1/docs/api/_utils.rst +9 -0
  12. phasorpy-0.1/docs/api/cli.rst +6 -0
  13. phasorpy-0.1/docs/api/color.rst +20 -0
  14. phasorpy-0.1/docs/api/components.rst +5 -0
  15. phasorpy-0.1/docs/api/cursors.rst +5 -0
  16. phasorpy-0.1/docs/api/datasets.rst +9 -0
  17. phasorpy-0.1/docs/api/index.rst +26 -0
  18. phasorpy-0.1/docs/api/io.rst +5 -0
  19. phasorpy-0.1/docs/api/phasor.rst +5 -0
  20. phasorpy-0.1/docs/api/phasorpy.rst +6 -0
  21. phasorpy-0.1/docs/api/plot.rst +5 -0
  22. phasorpy-0.1/docs/api/utils.rst +5 -0
  23. phasorpy-0.1/docs/code_of_conduct.rst +143 -0
  24. phasorpy-0.1/docs/conf.py +123 -0
  25. phasorpy-0.1/docs/contributing.rst +292 -0
  26. phasorpy-0.1/docs/index.rst +74 -0
  27. phasorpy-0.1/docs/license.rst +22 -0
  28. phasorpy-0.1/docs/phasor_approach.rst +287 -0
  29. phasorpy-0.1/docs/release.rst +142 -0
  30. phasorpy-0.1/pyproject.toml +191 -0
  31. phasorpy-0.1/setup.cfg +4 -0
  32. phasorpy-0.1/setup.py +53 -0
  33. phasorpy-0.1/src/phasorpy/__init__.py +10 -0
  34. phasorpy-0.1/src/phasorpy/__main__.py +7 -0
  35. phasorpy-0.1/src/phasorpy/_phasorpy.pyx +1811 -0
  36. phasorpy-0.1/src/phasorpy/_typing.py +77 -0
  37. phasorpy-0.1/src/phasorpy/_utils.py +441 -0
  38. phasorpy-0.1/src/phasorpy/cli.py +87 -0
  39. phasorpy-0.1/src/phasorpy/color.py +581 -0
  40. phasorpy-0.1/src/phasorpy/components.py +313 -0
  41. phasorpy-0.1/src/phasorpy/conftest.py +36 -0
  42. phasorpy-0.1/src/phasorpy/cursors.py +502 -0
  43. phasorpy-0.1/src/phasorpy/datasets.py +433 -0
  44. phasorpy-0.1/src/phasorpy/io.py +1671 -0
  45. phasorpy-0.1/src/phasorpy/phasor.py +3135 -0
  46. phasorpy-0.1/src/phasorpy/plot.py +2074 -0
  47. phasorpy-0.1/src/phasorpy/py.typed +0 -0
  48. phasorpy-0.1/src/phasorpy/utils.py +68 -0
  49. phasorpy-0.1/src/phasorpy/version.py +71 -0
  50. phasorpy-0.1/src/phasorpy.egg-info/PKG-INFO +78 -0
  51. phasorpy-0.1/src/phasorpy.egg-info/SOURCES.txt +83 -0
  52. phasorpy-0.1/src/phasorpy.egg-info/dependency_links.txt +1 -0
  53. phasorpy-0.1/src/phasorpy.egg-info/entry_points.txt +2 -0
  54. phasorpy-0.1/src/phasorpy.egg-info/not-zip-safe +1 -0
  55. phasorpy-0.1/src/phasorpy.egg-info/requires.txt +29 -0
  56. phasorpy-0.1/src/phasorpy.egg-info/top_level.txt +1 -0
  57. phasorpy-0.1/tests/conftest.py +24 -0
  58. phasorpy-0.1/tests/test__phasorpy.py +423 -0
  59. phasorpy-0.1/tests/test__typing.py +10 -0
  60. phasorpy-0.1/tests/test__utils.py +239 -0
  61. phasorpy-0.1/tests/test_cli.py +41 -0
  62. phasorpy-0.1/tests/test_color.py +39 -0
  63. phasorpy-0.1/tests/test_components.py +261 -0
  64. phasorpy-0.1/tests/test_cursors.py +478 -0
  65. phasorpy-0.1/tests/test_datasets.py +84 -0
  66. phasorpy-0.1/tests/test_io.py +762 -0
  67. phasorpy-0.1/tests/test_nan.py +376 -0
  68. phasorpy-0.1/tests/test_phasor.py +2408 -0
  69. phasorpy-0.1/tests/test_phasorpy.py +18 -0
  70. phasorpy-0.1/tests/test_plot.py +527 -0
  71. phasorpy-0.1/tests/test_utils.py +29 -0
  72. phasorpy-0.1/tutorials/README.rst +9 -0
  73. phasorpy-0.1/tutorials/api/README.rst +4 -0
  74. phasorpy-0.1/tutorials/api/phasorpy_components.py +261 -0
  75. phasorpy-0.1/tutorials/api/phasorpy_cursors.py +172 -0
  76. phasorpy-0.1/tutorials/api/phasorpy_fret.py +234 -0
  77. phasorpy-0.1/tutorials/api/phasorpy_lifetime_to_signal.py +195 -0
  78. phasorpy-0.1/tutorials/api/phasorpy_pca.py +150 -0
  79. phasorpy-0.1/tutorials/api/phasorpy_phasor_from_lifetime.py +202 -0
  80. phasorpy-0.1/tutorials/api/phasorpy_phasorplot.py +226 -0
  81. phasorpy-0.1/tutorials/applications/README.rst +4 -0
  82. phasorpy-0.1/tutorials/benchmarks/README.rst +4 -0
  83. phasorpy-0.1/tutorials/benchmarks/phasorpy_phasor_from_signal.py +161 -0
  84. phasorpy-0.1/tutorials/phasorpy_introduction.py +425 -0
  85. phasorpy-0.1/tutorials/phasorpy_lfd_workshop.py +576 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022-2024 PhasorPy Contributors
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,18 @@
1
+ include LICENSE.txt
2
+ include README.md
3
+
4
+ include tests/*.py
5
+
6
+ include docs/*.py
7
+ include docs/*.rst
8
+ include docs/api/*.rst
9
+ include docs/_static/*.*
10
+
11
+ recursive-include tutorials *.py
12
+ recursive-include tutorials *.rst
13
+
14
+ exclude *.cmd
15
+
16
+ recursive-exclude * __pycache__
17
+ recursive-exclude * *.py[co]
18
+ recursive-exclude * *Copy*
phasorpy-0.1/PKG-INFO ADDED
@@ -0,0 +1,78 @@
1
+ Metadata-Version: 2.1
2
+ Name: phasorpy
3
+ Version: 0.1
4
+ Summary: Analysis of fluorescence lifetime and hyperspectral images using the phasor approach
5
+ Author: PhasorPy Contributors
6
+ License: MIT
7
+ Project-URL: Homepage, https://www.phasorpy.org
8
+ Project-URL: Documentation, https://www.phasorpy.org/docs/stable/
9
+ Project-URL: Download, https://pypi.org/project/phasorpy/#files
10
+ Project-URL: Source code, https://github.com/phasorpy/phasorpy
11
+ Project-URL: Issue tracker, https://github.com/phasorpy/phasorpy/issues
12
+ Project-URL: Release notes, https://www.phasorpy.org/docs/stable/release
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Programming Language :: Python
18
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
+ Classifier: Operating System :: OS Independent
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3 :: Only
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Requires-Python: >=3.10
27
+ Description-Content-Type: text/markdown
28
+ License-File: LICENSE.txt
29
+ Requires-Dist: numpy>=1.24.0
30
+ Requires-Dist: matplotlib>=3.7.0
31
+ Requires-Dist: scipy>=1.11.0
32
+ Requires-Dist: click
33
+ Requires-Dist: pooch
34
+ Requires-Dist: tqdm
35
+ Requires-Dist: xarray>=2023.4.0
36
+ Requires-Dist: tifffile>=2024.8.30
37
+ Provides-Extra: docs
38
+ Requires-Dist: sphinx; extra == "docs"
39
+ Requires-Dist: sphinx-issues; extra == "docs"
40
+ Requires-Dist: sphinx_gallery; extra == "docs"
41
+ Requires-Dist: sphinx-copybutton; extra == "docs"
42
+ Requires-Dist: sphinx_click; extra == "docs"
43
+ Requires-Dist: pydata-sphinx-theme; extra == "docs"
44
+ Requires-Dist: numpydoc; extra == "docs"
45
+ Provides-Extra: test
46
+ Requires-Dist: pytest; extra == "test"
47
+ Requires-Dist: pytest-cov; extra == "test"
48
+ Requires-Dist: pytest-runner; extra == "test"
49
+ Requires-Dist: pytest-doctestplus; extra == "test"
50
+ Requires-Dist: coverage; extra == "test"
51
+ Provides-Extra: all
52
+ Requires-Dist: lfdfiles>=2024.5.24; extra == "all"
53
+ Requires-Dist: sdtfile>=2024.5.24; extra == "all"
54
+ Requires-Dist: ptufile>=2024.9.14; extra == "all"
55
+
56
+ # PhasorPy
57
+
58
+ PhasorPy is an open-source Python library for the analysis of fluorescence
59
+ lifetime and hyperspectral images using the phasor approach.
60
+
61
+ - [Homepage](https://www.phasorpy.org)
62
+ - [Documentation](https://www.phasorpy.org/docs/stable/)
63
+ - [Source code](https://github.com/phasorpy/phasorpy)
64
+ - [Download releases](https://pypi.org/project/phasorpy/#files)
65
+ - [Data files](https://zenodo.org/communities/phasorpy/)
66
+ - [Issues and questions](https://github.com/phasorpy/phasorpy/issues)
67
+
68
+ PhasorPy is a community-maintained project.
69
+ [Contributions](https://www.phasorpy.org/docs/stable/contributing/)
70
+ in the form of bug reports, bug fixes, feature implementations, documentation,
71
+ datasets, and enhancement proposals are welcome.
72
+
73
+ This software project is supported in part by the
74
+ [Essential Open Source Software for Science (EOSS)](https://chanzuckerberg.com/eoss/)
75
+ program at
76
+ [Chan Zuckerberg Initiative](https://chanzuckerberg.com/).
77
+
78
+ [![CZI's Essential Open Source Software for Science](https://chanzuckerberg.github.io/open-science/badges/CZI-EOSS.svg)](https://czi.co/EOSS)
phasorpy-0.1/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # PhasorPy
2
+
3
+ PhasorPy is an open-source Python library for the analysis of fluorescence
4
+ lifetime and hyperspectral images using the phasor approach.
5
+
6
+ - [Homepage](https://www.phasorpy.org)
7
+ - [Documentation](https://www.phasorpy.org/docs/stable/)
8
+ - [Source code](https://github.com/phasorpy/phasorpy)
9
+ - [Download releases](https://pypi.org/project/phasorpy/#files)
10
+ - [Data files](https://zenodo.org/communities/phasorpy/)
11
+ - [Issues and questions](https://github.com/phasorpy/phasorpy/issues)
12
+
13
+ PhasorPy is a community-maintained project.
14
+ [Contributions](https://www.phasorpy.org/docs/stable/contributing/)
15
+ in the form of bug reports, bug fixes, feature implementations, documentation,
16
+ datasets, and enhancement proposals are welcome.
17
+
18
+ This software project is supported in part by the
19
+ [Essential Open Source Software for Science (EOSS)](https://chanzuckerberg.com/eoss/)
20
+ program at
21
+ [Chan Zuckerberg Initiative](https://chanzuckerberg.com/).
22
+
23
+ [![CZI's Essential Open Source Software for Science](https://chanzuckerberg.github.io/open-science/badges/CZI-EOSS.svg)](https://czi.co/EOSS)
@@ -0,0 +1,16 @@
1
+ /*******************************************************************************
2
+ * Set a custom icon for pypi as it's not available in the fa built-in brands
3
+ */
4
+ FontAwesome.library.add(
5
+ (faListOldStyle = {
6
+ prefix: "fa-custom",
7
+ iconName: "pypi",
8
+ icon: [
9
+ 17.313, // viewBox width
10
+ 19.807, // viewBox height
11
+ [], // ligature
12
+ "e001", // unicode codepoint - private use area
13
+ "m10.383 0.2-3.239 1.1769 3.1883 1.1614 3.239-1.1798zm-3.4152 1.2411-3.2362 1.1769 3.1855 1.1614 3.2369-1.1769zm6.7177 0.00281-3.2947 1.2009v3.8254l3.2947-1.1988zm-3.4145 1.2439-3.2926 1.1981v3.8254l0.17548-0.064132 3.1171-1.1347zm-6.6564 0.018325v3.8247l3.244 1.1805v-3.8254zm10.191 0.20931v2.3137l3.1777-1.1558zm3.2947 1.2425-3.2947 1.1988v3.8254l3.2947-1.1988zm-8.7058 0.45739c0.00929-1.931e-4 0.018327-2.977e-4 0.027485 0 0.25633 0.00851 0.4263 0.20713 0.42638 0.49826 1.953e-4 0.38532-0.29327 0.80469-0.65542 0.93662-0.36226 0.13215-0.65608-0.073306-0.65613-0.4588-6.28e-5 -0.38556 0.2938-0.80504 0.65613-0.93662 0.068422-0.024919 0.13655-0.038114 0.20156-0.039466zm5.2913 0.78369-3.2947 1.1988v3.8247l3.2947-1.1981zm-10.132 1.239-3.2362 1.1769 3.1883 1.1614 3.2362-1.1769zm6.7177 0.00213-3.2926 1.2016v3.8247l3.2926-1.2009zm-3.4124 1.2439-3.2947 1.1988v3.8254l3.2947-1.1988zm-6.6585 0.016195v3.8275l3.244 1.1805v-3.8254zm16.9 0.21143-3.2947 1.1988v3.8247l3.2947-1.1981zm-3.4145 1.2411-3.2926 1.2016v3.8247l3.2926-1.2009zm-3.4145 1.2411-3.2926 1.2016v3.8247l3.2926-1.2009zm-3.4124 1.2432-3.2947 1.1988v3.8254l3.2947-1.1988zm-6.6585 0.019027v3.8247l3.244 1.1805v-3.8254zm13.485 1.4497-3.2947 1.1988v3.8247l3.2947-1.1981zm-3.4145 1.2411-3.2926 1.2016v3.8247l3.2926-1.2009zm2.4018 0.38127c0.0093-1.83e-4 0.01833-3.16e-4 0.02749 0 0.25633 0.0085 0.4263 0.20713 0.42638 0.49826 1.97e-4 0.38532-0.29327 0.80469-0.65542 0.93662-0.36188 0.1316-0.65525-0.07375-0.65542-0.4588-1.95e-4 -0.38532 0.29328-0.80469 0.65542-0.93662 0.06842-0.02494 0.13655-0.03819 0.20156-0.03947zm-5.8142 0.86403-3.244 1.1805v1.4201l3.244 1.1805z", // svg path (https://simpleicons.org/icons/pypi.svg)
14
+ ],
15
+ }),
16
+ );
Binary file
@@ -0,0 +1,35 @@
1
+ Acknowledgments
2
+ ===============
3
+
4
+ The PhasorPy project is jointly maintained by the
5
+ `Advanced Bioimaging Unit <https://pasteur.uy/en/units/advanced-bioimaging>`_
6
+ at the University of the Republic and Institut Pasteur de Montevideo and the
7
+ `Laboratory for Fluorescence Dynamics <https://www.lfd.uci.edu>`_
8
+ at the University of California, Irvine.
9
+
10
+ PhasorPy was inspired by the
11
+ `Globals for Images · SimFCS <https://www.lfd.uci.edu/globals/>`_ software by
12
+ Enrico Gratton.
13
+
14
+ This software project is supported in part by the
15
+ `Essential Open Source Software for Science (EOSS)
16
+ <https://chanzuckerberg.com/eoss/>`_ program at
17
+ `Chan Zuckerberg Initiative <https://chanzuckerberg.com/>`_.
18
+
19
+ .. _contributors:
20
+
21
+ Contributors
22
+ ------------
23
+
24
+ The following people (in alphabetical order) have contributed to the
25
+ development of PhasorPy by providing code, documentation, tutorials,
26
+ bug fixes, or expertise:
27
+
28
+ - :user:`Christoph Gohlke <cgohlke>`
29
+ - Enrico Gratton
30
+ - :user:`Leonel Malacrida <lmalacrida>`
31
+ - :user:`Bruno Pannunzio <bruno-pannunzio>`
32
+ - :user:`Bruno Schüty <schutyb>`
33
+
34
+ See also `GitHub contributors
35
+ <https://github.com/phasorpy/phasorpy/graphs/contributors>`_.
@@ -0,0 +1,12 @@
1
+ phasorpy._phasorpy
2
+ ------------------
3
+
4
+ .. note::
5
+ This module and its functions are not part of the public interface.
6
+ They are intended to facilitate the development of the PhasorPy library.
7
+
8
+ .. automodule:: phasorpy._phasorpy
9
+ :members:
10
+ :undoc-members:
11
+ :private-members:
12
+ :special-members:
@@ -0,0 +1,9 @@
1
+ phasorpy._utils
2
+ ---------------
3
+
4
+ .. note::
5
+ This module and its functions are not part of the public interface.
6
+ They are intended to facilitate the development of the PhasorPy library.
7
+
8
+ .. automodule:: phasorpy._utils
9
+ :members:
@@ -0,0 +1,6 @@
1
+ Command line interface
2
+ ----------------------
3
+
4
+ .. click:: phasorpy.cli:main
5
+ :prog: python -m phasorpy
6
+ :nested: full
@@ -0,0 +1,20 @@
1
+ phasorpy.color
2
+ --------------
3
+
4
+ .. automodule:: phasorpy.color
5
+ :members:
6
+ :exclude-members: SRGB_SPECTRUM, CATEGORICAL
7
+
8
+ .. autodata:: phasorpy.color.CATEGORICAL
9
+ :no-value:
10
+
11
+ .. image:: ../_static/categorical.png
12
+ :alt: phasorpy.color.CATEGORICAL
13
+ :align: center
14
+
15
+ .. autodata:: phasorpy.color.SRGB_SPECTRUM
16
+ :no-value:
17
+
18
+ .. image:: ../_static/srgb_spectrum.png
19
+ :alt: phasorpy.color.SRGB_SPECTRUM
20
+ :align: center
@@ -0,0 +1,5 @@
1
+ phasorpy.components
2
+ -------------------
3
+
4
+ .. automodule:: phasorpy.components
5
+ :members:
@@ -0,0 +1,5 @@
1
+ phasorpy.cursors
2
+ ----------------
3
+
4
+ .. automodule:: phasorpy.cursors
5
+ :members:
@@ -0,0 +1,9 @@
1
+ phasorpy.datasets
2
+ -----------------
3
+
4
+ .. automodule:: phasorpy.datasets
5
+ :members:
6
+ :exclude-members: REPOSITORIES
7
+
8
+ .. autodata:: phasorpy.datasets.REPOSITORIES
9
+ :no-value:
@@ -0,0 +1,26 @@
1
+ API reference
2
+ =============
3
+
4
+ This documents the application programming and command line interfaces of the
5
+ PhasorPy library version |version|.
6
+
7
+ .. note::
8
+ The PhasorPy library is in its early stages of development.
9
+ It is not nearly feature complete.
10
+ Large, backwards-incompatible changes may occur between revisions.
11
+
12
+ .. toctree::
13
+ :maxdepth: 3
14
+
15
+ phasorpy
16
+ phasor
17
+ cursors
18
+ components
19
+ plot
20
+ io
21
+ color
22
+ datasets
23
+ utils
24
+ _utils
25
+ _phasorpy
26
+ cli
@@ -0,0 +1,5 @@
1
+ phasorpy.io
2
+ -----------
3
+
4
+ .. automodule:: phasorpy.io
5
+ :members:
@@ -0,0 +1,5 @@
1
+ phasorpy.phasor
2
+ ---------------
3
+
4
+ .. automodule:: phasorpy.phasor
5
+ :members:
@@ -0,0 +1,6 @@
1
+ phasorpy
2
+ --------
3
+
4
+ .. automodule:: phasorpy
5
+ :members:
6
+ :special-members: __version__
@@ -0,0 +1,5 @@
1
+ phasorpy.plot
2
+ -------------
3
+
4
+ .. automodule:: phasorpy.plot
5
+ :members:
@@ -0,0 +1,5 @@
1
+ phasorpy.utils
2
+ --------------
3
+
4
+ .. automodule:: phasorpy.utils
5
+ :members:
@@ -0,0 +1,143 @@
1
+ Code of conduct
2
+ ===============
3
+
4
+ The PhasorPy project adopts the `Contributor Covenant Code of Conduct
5
+ <https://www.contributor-covenant.org/version/2/1/code_of_conduct.html>`_.
6
+
7
+ Our Pledge
8
+ ----------
9
+
10
+ We as members, contributors, and leaders pledge to make participation in our
11
+ community a harassment-free experience for everyone, regardless of age, body
12
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
13
+ identity and expression, level of experience, education, socioeconomic status,
14
+ nationality, personal appearance, race, caste, color, religion, or sexual
15
+ identity and orientation.
16
+
17
+ We pledge to act and interact in ways that contribute to an open, welcoming,
18
+ diverse, inclusive, and healthy community.
19
+
20
+ Our Standards
21
+ -------------
22
+
23
+ Examples of behavior that contributes to a positive environment for our
24
+ community include:
25
+
26
+ - Demonstrating empathy and kindness toward other people
27
+ - Being respectful of differing opinions, viewpoints, and experiences
28
+ - Giving and gracefully accepting constructive feedback
29
+ - Accepting responsibility and apologizing to those affected by our mistakes,
30
+ and learning from the experience
31
+ - Focusing on what is best not just for us as individuals, but for the overall
32
+ community
33
+
34
+ Examples of unacceptable behavior include:
35
+
36
+ - The use of sexualized language or imagery, and sexual attention or advances
37
+ of any kind
38
+ - Trolling, insulting or derogatory comments, and personal or political attacks
39
+ - Public or private harassment
40
+ - Publishing others' private information, such as a physical or email address,
41
+ without their explicit permission
42
+ - Other conduct which could reasonably be considered inappropriate in a
43
+ professional setting
44
+
45
+ Enforcement Responsibilities
46
+ ----------------------------
47
+
48
+ Community leaders are responsible for clarifying and enforcing our standards of
49
+ acceptable behavior and will take appropriate and fair corrective action in
50
+ response to any behavior that they deem inappropriate, threatening, offensive,
51
+ or harmful.
52
+
53
+ Community leaders have the right and responsibility to remove, edit, or reject
54
+ comments, commits, code, wiki edits, issues, and other contributions that are
55
+ not aligned to this Code of Conduct, and will communicate reasons for
56
+ moderation decisions when appropriate.
57
+
58
+ Scope
59
+ -----
60
+
61
+ This Code of Conduct applies within all community spaces, and also applies when
62
+ an individual is officially representing the community in public spaces.
63
+ Examples of representing our community include using an official e-mail
64
+ address, posting via an official social media account, or acting as an
65
+ appointed representative at an online or offline event.
66
+
67
+ Enforcement
68
+ -----------
69
+
70
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
71
+ reported to the community leader responsible for enforcement:
72
+
73
+ - `Leonel Malacrida <conduct@phasorpy.org>`_
74
+
75
+ All complaints will be reviewed and investigated promptly and fairly.
76
+
77
+ All community leaders are obligated to respect the privacy and security of the
78
+ reporter of any incident.
79
+
80
+ Enforcement Guidelines
81
+ ----------------------
82
+
83
+ Community leaders will follow these Community Impact Guidelines in determining
84
+ the consequences for any action they deem in violation of this Code of Conduct:
85
+
86
+ 1. Correction
87
+ .............
88
+
89
+ **Community Impact**: Use of inappropriate language or other behavior deemed
90
+ unprofessional or unwelcome in the community.
91
+
92
+ **Consequence**: A private, written warning from community leaders, providing
93
+ clarity around the nature of the violation and an explanation of why the
94
+ behavior was inappropriate. A public apology may be requested.
95
+
96
+ 2. Warning
97
+ ..........
98
+
99
+ **Community Impact**: A violation through a single incident or series of
100
+ actions.
101
+
102
+ **Consequence**: A warning with consequences for continued behavior. No
103
+ interaction with the people involved, including unsolicited interaction with
104
+ those enforcing the Code of Conduct, for a specified period of time. This
105
+ includes avoiding interactions in community spaces as well as external channels
106
+ like social media. Violating these terms may lead to a temporary or permanent
107
+ ban.
108
+
109
+ 3. Temporary Ban
110
+ ................
111
+
112
+ **Community Impact**: A serious violation of community standards, including
113
+ sustained inappropriate behavior.
114
+
115
+ **Consequence**: A temporary ban from any sort of interaction or public
116
+ communication with the community for a specified period of time. No public or
117
+ private interaction with the people involved, including unsolicited interaction
118
+ with those enforcing the Code of Conduct, is allowed during this period.
119
+ Violating these terms may lead to a permanent ban.
120
+
121
+ 4. Permanent Ban
122
+ ................
123
+
124
+ **Community Impact**: Demonstrating a pattern of violation of community
125
+ standards, including sustained inappropriate behavior, harassment of an
126
+ individual, or aggression toward or disparagement of classes of individuals.
127
+
128
+ **Consequence**: A permanent ban from any sort of public interaction within the
129
+ community.
130
+
131
+ Attribution
132
+ -----------
133
+
134
+ This Code of Conduct is adapted from the `Contributor Covenant
135
+ <https://www.contributor-covenant.org>`_, version 2.1, available at
136
+ https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
137
+
138
+ Community Impact Guidelines were inspired by `Mozilla's code of conduct
139
+ enforcement ladder <https://github.com/mozilla/diversity>`_.
140
+
141
+ For answers to common questions about this code of conduct, see the FAQ at
142
+ https://www.contributor-covenant.org/faq. Translations are available at
143
+ https://www.contributor-covenant.org/translations.
@@ -0,0 +1,123 @@
1
+ # Configuration file for the Sphinx documentation builder.
2
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html
3
+ # pylint: skip-file
4
+
5
+ # import os
6
+ # import sys
7
+ # sys.path.insert(0, os.path.abspath('../src/'))
8
+
9
+ # remove the examples header from HTML tutorials
10
+ import sphinx_gallery.gen_rst
11
+
12
+ sphinx_gallery.gen_rst.EXAMPLE_HEADER = (
13
+ sphinx_gallery.gen_rst.EXAMPLE_HEADER.replace(
14
+ '.. only:: html', '.. only:: xml'
15
+ )
16
+ )
17
+
18
+ # project information
19
+
20
+ project = 'PhasorPy'
21
+ copyright = '2022-2024 PhasorPy Contributors'
22
+ author = 'PhasorPy Contributors'
23
+
24
+ import phasorpy
25
+
26
+ version = phasorpy.__version__
27
+ release = phasorpy.__version__
28
+
29
+ # general configuration
30
+
31
+ extensions = [
32
+ 'sphinx.ext.napoleon',
33
+ 'sphinx.ext.autodoc',
34
+ 'sphinx.ext.autosummary',
35
+ 'sphinx.ext.doctest',
36
+ 'sphinx.ext.viewcode',
37
+ 'sphinx.ext.todo',
38
+ # don't enable intersphinx since tutorials are getting littered with links
39
+ # 'sphinx.ext.intersphinx',
40
+ # 'numpydoc',
41
+ 'sphinx_inline_tabs',
42
+ 'sphinx_copybutton',
43
+ 'sphinx_click',
44
+ 'sphinx_issues',
45
+ 'sphinx_gallery.gen_gallery',
46
+ 'pytest_doctestplus.sphinx.doctestplus',
47
+ ]
48
+
49
+ templates_path = ['_templates']
50
+ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
51
+
52
+ # options for HTML output
53
+
54
+ # html_theme = 'alabaster'
55
+ # html_theme = 'sphinx_rtd_theme'
56
+ html_theme = 'pydata_sphinx_theme'
57
+ html_static_path = ['_static']
58
+ html_js_files = ['custom-icons.js']
59
+ html_show_sourcelink = False
60
+
61
+ html_logo = '_static/logo.png'
62
+ # html_favicon = ''
63
+
64
+ pygments_style = 'sphinx'
65
+
66
+ # extension configurations
67
+
68
+ napoleon_google_docstring = False
69
+ napoleon_numpy_docstring = True
70
+ todo_include_todos = True
71
+ napoleon_use_param = True
72
+
73
+ html_theme_options = {
74
+ 'logo': {
75
+ 'text': 'PhasorPy',
76
+ 'alt_text': 'PhasorPy',
77
+ # 'image_dark': '_static/logo-dark.svg',
78
+ },
79
+ 'header_links_before_dropdown': 4,
80
+ 'show_nav_level': 2,
81
+ 'navigation_with_keys': False,
82
+ 'icon_links': [
83
+ {
84
+ 'name': 'GitHub',
85
+ 'url': 'https://github.com/phasorpy/phasorpy',
86
+ 'icon': 'fa-brands fa-github',
87
+ },
88
+ {
89
+ 'name': 'PyPI',
90
+ 'url': 'https://pypi.org/project/phasorpy/',
91
+ 'icon': 'fa-custom fa-pypi',
92
+ 'type': 'fontawesome',
93
+ },
94
+ ],
95
+ }
96
+
97
+ sphinx_gallery_conf = {
98
+ 'filename_pattern': 'phasorpy_',
99
+ 'examples_dirs': '../tutorials',
100
+ 'gallery_dirs': 'tutorials',
101
+ 'reference_url': {'phasorpy': None},
102
+ 'matplotlib_animations': True,
103
+ }
104
+
105
+ copybutton_prompt_text = (
106
+ r'>>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: '
107
+ )
108
+ copybutton_prompt_is_regexp = True
109
+
110
+ intersphinx_mapping = {
111
+ 'python': ('https://docs.python.org/3/', None),
112
+ 'numpy': ('https://numpy.org/doc/stable/', None),
113
+ 'matplotlib': ('https://matplotlib.org/stable/', None),
114
+ 'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None),
115
+ 'pandas': ('https://pandas.pydata.org/docs/', None),
116
+ 'sklearn': ('https://scikit-learn.org/stable/', None),
117
+ 'skimage': ('https://scikit-image.org/docs/stable/', None),
118
+ }
119
+
120
+ intersphinx_disabled_reftypes = ['*']
121
+
122
+ # do not show typehints
123
+ autodoc_typehints = 'none'