pyrception 0.2.4__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.
- pyrception-0.2.4/LICENCE.md +19 -0
- pyrception-0.2.4/PKG-INFO +38 -0
- pyrception-0.2.4/README.md +64 -0
- pyrception-0.2.4/pyproject.toml +72 -0
- pyrception-0.2.4/pyrception/__init__.py +15 -0
- pyrception-0.2.4/pyrception.egg-info/PKG-INFO +38 -0
- pyrception-0.2.4/pyrception.egg-info/SOURCES.txt +10 -0
- pyrception-0.2.4/pyrception.egg-info/dependency_links.txt +1 -0
- pyrception-0.2.4/pyrception.egg-info/entry_points.txt +2 -0
- pyrception-0.2.4/pyrception.egg-info/requires.txt +37 -0
- pyrception-0.2.4/pyrception.egg-info/top_level.txt +1 -0
- pyrception-0.2.4/setup.cfg +4 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2022-2024 Alexander Hadjiivanov
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: pyrception
|
|
3
|
+
Version: 0.2.4
|
|
4
|
+
Author: Alexander Hadjiivanov
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
|
+
License-File: LICENCE.md
|
|
7
|
+
Requires-Dist: av
|
|
8
|
+
Requires-Dist: black
|
|
9
|
+
Requires-Dist: h5py
|
|
10
|
+
Requires-Dist: imageio[ffmpeg]
|
|
11
|
+
Requires-Dist: ipykernel
|
|
12
|
+
Requires-Dist: ipywidgets
|
|
13
|
+
Requires-Dist: loguru
|
|
14
|
+
Requires-Dist: matplotlib
|
|
15
|
+
Requires-Dist: numpy
|
|
16
|
+
Requires-Dist: opencv-python
|
|
17
|
+
Requires-Dist: plotly[express]
|
|
18
|
+
Requires-Dist: pydantic-settings
|
|
19
|
+
Requires-Dist: rich
|
|
20
|
+
Requires-Dist: ruff
|
|
21
|
+
Requires-Dist: scikit-image
|
|
22
|
+
Requires-Dist: scipy
|
|
23
|
+
Requires-Dist: tqdm
|
|
24
|
+
Provides-Extra: gui
|
|
25
|
+
Requires-Dist: pyqtgraph; extra == "gui"
|
|
26
|
+
Requires-Dist: PySide6; extra == "gui"
|
|
27
|
+
Provides-Extra: cli
|
|
28
|
+
Requires-Dist: cloup; extra == "cli"
|
|
29
|
+
Provides-Extra: events
|
|
30
|
+
Requires-Dist: tonic; extra == "events"
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: py-spy; extra == "dev"
|
|
33
|
+
Provides-Extra: docs
|
|
34
|
+
Requires-Dist: mike; extra == "docs"
|
|
35
|
+
Requires-Dist: mkdocs-jupyter; extra == "docs"
|
|
36
|
+
Requires-Dist: mkdocs-material; extra == "docs"
|
|
37
|
+
Requires-Dist: mkdocs; extra == "docs"
|
|
38
|
+
Requires-Dist: mkdocstrings[python]; extra == "docs"
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Overview
|
|
2
|
+
Pyrception aims to serve as a simulation and conversion framework for different perceptual modalities. Currently, it supports simulation of visual pathways of the mammalian retina, but the goal is to incorporate other modalities as well, such as auditory, olfactory and so forth. It can also serve as an input conversion library for encoding raw multimodal sensory input into a uniform spike train suitable for processing with spiking neural networks.
|
|
3
|
+
|
|
4
|
+
At this stage, only the visual package is implemented. The auditory and olfactory packages are work in progress. Contributions are welcome in case you would like to help with the implementation of these modalities!
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
You can install Pyrception from PyPI, or directly from GitHub.
|
|
9
|
+
|
|
10
|
+
### PyPI
|
|
11
|
+
|
|
12
|
+
```shell
|
|
13
|
+
pip install pyrception
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### GitHub
|
|
17
|
+
|
|
18
|
+
Clone the repository and install it (optionally in in development mode):
|
|
19
|
+
|
|
20
|
+
=== "HTTPS"
|
|
21
|
+
|
|
22
|
+
``` shell
|
|
23
|
+
git clone https://github.com/cantordust/pyrception.git
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
=== "Git+SSH"
|
|
27
|
+
|
|
28
|
+
``` shell
|
|
29
|
+
git clone git@github.com:cantordust/pyrception.git
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
``` shell
|
|
33
|
+
cd pyrception
|
|
34
|
+
```
|
|
35
|
+
``` shell
|
|
36
|
+
pip install -e .
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Documentation
|
|
40
|
+
|
|
41
|
+
To generate the documentation, run the MkDocs build pipeline:
|
|
42
|
+
|
|
43
|
+
```shell
|
|
44
|
+
mkdocs build
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
To view the documentation locally, start the MkDocs server:
|
|
48
|
+
|
|
49
|
+
```shell
|
|
50
|
+
mkdocs serve
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
# ToDo
|
|
54
|
+
|
|
55
|
+
## Short-term
|
|
56
|
+
Visual package:
|
|
57
|
+
- [X] Receptor signal scaling following Weber's law.
|
|
58
|
+
- [X] Retinal ganglion cells.
|
|
59
|
+
- [ ] Saccadic movements (WIP).
|
|
60
|
+
- [ ] Colour vision (with colour opponency).
|
|
61
|
+
- [ ] Auditory package (WIP).
|
|
62
|
+
- [ ] Olfactory package (WIP).
|
|
63
|
+
- [ ] Investigate alternative backends for sparse matrix operations ([CuPy](https://cupy.dev/), [PyTorch](https://pytorch.org/docs/stable/sparse.html), [Sparse](https://sparse.pydata.org/en/stable/)).
|
|
64
|
+
- [ ] Interfacing with neuromorphic hardware.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[tool.setuptools]
|
|
6
|
+
packages = ["pyrception"]
|
|
7
|
+
|
|
8
|
+
[project]
|
|
9
|
+
authors = [{ name = "Alexander Hadjiivanov" }]
|
|
10
|
+
name = "pyrception"
|
|
11
|
+
version = "0.2.4"
|
|
12
|
+
requires-python = ">= 3.11"
|
|
13
|
+
dependencies = [
|
|
14
|
+
"av",
|
|
15
|
+
"black",
|
|
16
|
+
"h5py",
|
|
17
|
+
"imageio[ffmpeg]",
|
|
18
|
+
"ipykernel",
|
|
19
|
+
"ipywidgets",
|
|
20
|
+
"loguru",
|
|
21
|
+
"matplotlib",
|
|
22
|
+
"numpy",
|
|
23
|
+
"opencv-python",
|
|
24
|
+
"plotly[express]",
|
|
25
|
+
"pydantic-settings",
|
|
26
|
+
"rich",
|
|
27
|
+
"ruff",
|
|
28
|
+
"scikit-image",
|
|
29
|
+
"scipy",
|
|
30
|
+
"tqdm",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.optional-dependencies]
|
|
34
|
+
gui = ["pyqtgraph", "PySide6"]
|
|
35
|
+
cli = ["cloup"]
|
|
36
|
+
events = ["tonic"]
|
|
37
|
+
dev = ["py-spy"]
|
|
38
|
+
docs = [
|
|
39
|
+
"mike",
|
|
40
|
+
"mkdocs-jupyter",
|
|
41
|
+
"mkdocs-material",
|
|
42
|
+
"mkdocs",
|
|
43
|
+
"mkdocstrings[python]",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
[project.scripts]
|
|
47
|
+
pyrception = "pyrception.gui.main:run"
|
|
48
|
+
|
|
49
|
+
[tool.ruff.format]
|
|
50
|
+
indent-style = "space"
|
|
51
|
+
skip-magic-trailing-comma = false
|
|
52
|
+
line-ending = "auto"
|
|
53
|
+
docstring-code-format = false
|
|
54
|
+
docstring-code-line-length = "dynamic"
|
|
55
|
+
|
|
56
|
+
[tool.ruff.lint.isort]
|
|
57
|
+
from-first = false
|
|
58
|
+
force-single-line = true
|
|
59
|
+
force-sort-within-sections = true
|
|
60
|
+
length-sort = true
|
|
61
|
+
lines-after-imports = 1
|
|
62
|
+
order-by-type = true
|
|
63
|
+
forced-separate = [
|
|
64
|
+
"future",
|
|
65
|
+
"typing",
|
|
66
|
+
"standard-library",
|
|
67
|
+
"third-party",
|
|
68
|
+
"first-party",
|
|
69
|
+
"local-folder",
|
|
70
|
+
"pyrception",
|
|
71
|
+
]
|
|
72
|
+
relative-imports-order = "closest-to-furthest"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from pyrception.utils.types import InputType
|
|
2
|
+
from pyrception.utils.types import RFArrangement
|
|
3
|
+
from pyrception.utils.types import KernelFilter
|
|
4
|
+
from pyrception.utils.types import KernelShape
|
|
5
|
+
from pyrception.utils.types import Dim
|
|
6
|
+
from pyrception.utils.types import Dims
|
|
7
|
+
from pyrception.config.settings import conf
|
|
8
|
+
from pyrception.config.settings import Conf
|
|
9
|
+
from pyrception.config.settings import logger
|
|
10
|
+
from pyrception.utils.functions import timestamp
|
|
11
|
+
# from pyrception.utils.functions import plot
|
|
12
|
+
# from pyrception.utils.functions import animate
|
|
13
|
+
from pyrception.utils.functions import cartesian_prod
|
|
14
|
+
from pyrception.utils.functions import load_image
|
|
15
|
+
from pyrception.utils.functions import load_video
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: pyrception
|
|
3
|
+
Version: 0.2.4
|
|
4
|
+
Author: Alexander Hadjiivanov
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
|
+
License-File: LICENCE.md
|
|
7
|
+
Requires-Dist: av
|
|
8
|
+
Requires-Dist: black
|
|
9
|
+
Requires-Dist: h5py
|
|
10
|
+
Requires-Dist: imageio[ffmpeg]
|
|
11
|
+
Requires-Dist: ipykernel
|
|
12
|
+
Requires-Dist: ipywidgets
|
|
13
|
+
Requires-Dist: loguru
|
|
14
|
+
Requires-Dist: matplotlib
|
|
15
|
+
Requires-Dist: numpy
|
|
16
|
+
Requires-Dist: opencv-python
|
|
17
|
+
Requires-Dist: plotly[express]
|
|
18
|
+
Requires-Dist: pydantic-settings
|
|
19
|
+
Requires-Dist: rich
|
|
20
|
+
Requires-Dist: ruff
|
|
21
|
+
Requires-Dist: scikit-image
|
|
22
|
+
Requires-Dist: scipy
|
|
23
|
+
Requires-Dist: tqdm
|
|
24
|
+
Provides-Extra: gui
|
|
25
|
+
Requires-Dist: pyqtgraph; extra == "gui"
|
|
26
|
+
Requires-Dist: PySide6; extra == "gui"
|
|
27
|
+
Provides-Extra: cli
|
|
28
|
+
Requires-Dist: cloup; extra == "cli"
|
|
29
|
+
Provides-Extra: events
|
|
30
|
+
Requires-Dist: tonic; extra == "events"
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: py-spy; extra == "dev"
|
|
33
|
+
Provides-Extra: docs
|
|
34
|
+
Requires-Dist: mike; extra == "docs"
|
|
35
|
+
Requires-Dist: mkdocs-jupyter; extra == "docs"
|
|
36
|
+
Requires-Dist: mkdocs-material; extra == "docs"
|
|
37
|
+
Requires-Dist: mkdocs; extra == "docs"
|
|
38
|
+
Requires-Dist: mkdocstrings[python]; extra == "docs"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
LICENCE.md
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
pyrception/__init__.py
|
|
5
|
+
pyrception.egg-info/PKG-INFO
|
|
6
|
+
pyrception.egg-info/SOURCES.txt
|
|
7
|
+
pyrception.egg-info/dependency_links.txt
|
|
8
|
+
pyrception.egg-info/entry_points.txt
|
|
9
|
+
pyrception.egg-info/requires.txt
|
|
10
|
+
pyrception.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
av
|
|
2
|
+
black
|
|
3
|
+
h5py
|
|
4
|
+
imageio[ffmpeg]
|
|
5
|
+
ipykernel
|
|
6
|
+
ipywidgets
|
|
7
|
+
loguru
|
|
8
|
+
matplotlib
|
|
9
|
+
numpy
|
|
10
|
+
opencv-python
|
|
11
|
+
plotly[express]
|
|
12
|
+
pydantic-settings
|
|
13
|
+
rich
|
|
14
|
+
ruff
|
|
15
|
+
scikit-image
|
|
16
|
+
scipy
|
|
17
|
+
tqdm
|
|
18
|
+
|
|
19
|
+
[cli]
|
|
20
|
+
cloup
|
|
21
|
+
|
|
22
|
+
[dev]
|
|
23
|
+
py-spy
|
|
24
|
+
|
|
25
|
+
[docs]
|
|
26
|
+
mike
|
|
27
|
+
mkdocs-jupyter
|
|
28
|
+
mkdocs-material
|
|
29
|
+
mkdocs
|
|
30
|
+
mkdocstrings[python]
|
|
31
|
+
|
|
32
|
+
[events]
|
|
33
|
+
tonic
|
|
34
|
+
|
|
35
|
+
[gui]
|
|
36
|
+
pyqtgraph
|
|
37
|
+
PySide6
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pyrception
|