cortical-tools 0.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 (33) hide show
  1. cortical_tools-0.0.1/.bmv-post-commit.sh +2 -0
  2. cortical_tools-0.0.1/.github/workflows/mkdocs_publish.yml +29 -0
  3. cortical_tools-0.0.1/.github/workflows/python-package.yml +31 -0
  4. cortical_tools-0.0.1/.gitignore +113 -0
  5. cortical_tools-0.0.1/.pre-commit-config.yaml +13 -0
  6. cortical_tools-0.0.1/LICENSE +21 -0
  7. cortical_tools-0.0.1/PKG-INFO +20 -0
  8. cortical_tools-0.0.1/README.md +1 -0
  9. cortical_tools-0.0.1/chunk_mesh.ipynb +5106 -0
  10. cortical_tools-0.0.1/docs/changelog.md +5 -0
  11. cortical_tools-0.0.1/docs/examples.md +191 -0
  12. cortical_tools-0.0.1/docs/img/l2labeled.png +0 -0
  13. cortical_tools-0.0.1/docs/index.md +39 -0
  14. cortical_tools-0.0.1/docs/reference/api.md +91 -0
  15. cortical_tools-0.0.1/examples.ipynb +1438 -0
  16. cortical_tools-0.0.1/mkdocs.yml +120 -0
  17. cortical_tools-0.0.1/profile.html +37110 -0
  18. cortical_tools-0.0.1/profile.json +36614 -0
  19. cortical_tools-0.0.1/pyproject.toml +111 -0
  20. cortical_tools-0.0.1/src/cortical_tools/__init__.py +1 -0
  21. cortical_tools-0.0.1/src/cortical_tools/common.py +473 -0
  22. cortical_tools-0.0.1/src/cortical_tools/datasets/__init__.py +0 -0
  23. cortical_tools-0.0.1/src/cortical_tools/datasets/microns_prod.py +31 -0
  24. cortical_tools-0.0.1/src/cortical_tools/datasets/microns_public.py +31 -0
  25. cortical_tools-0.0.1/src/cortical_tools/datasets/v1dd.py +31 -0
  26. cortical_tools-0.0.1/src/cortical_tools/datasets/v1dd_public.py +31 -0
  27. cortical_tools-0.0.1/src/cortical_tools/files.py +164 -0
  28. cortical_tools-0.0.1/src/cortical_tools/mesh.py +185 -0
  29. cortical_tools-0.0.1/src/cortical_tools/mesh_vertex.py +948 -0
  30. cortical_tools-0.0.1/src/cortical_tools/utils.py +35 -0
  31. cortical_tools-0.0.1/test_lookups.py +8 -0
  32. cortical_tools-0.0.1/tests/conftest.py +1 -0
  33. cortical_tools-0.0.1/uv.lock +6371 -0
@@ -0,0 +1,2 @@
1
+ #!/bin/bash
2
+ git push --tags
@@ -0,0 +1,29 @@
1
+ name: mkdocs
2
+ on:
3
+ push:
4
+ branches:
5
+ - master
6
+ - main
7
+ permissions:
8
+ contents: write
9
+ jobs:
10
+ deploy:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - name: Configure Git Credentials
15
+ run: |
16
+ git config user.name github-actions[bot]
17
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: 3.x
21
+ - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
22
+ - uses: actions/cache@v4
23
+ with:
24
+ key: mkdocs-material-${{ env.cache_id }}
25
+ path: .cache
26
+ restore-keys: |
27
+ mkdocs-material-
28
+ - run: pip install mkdocs-material mkdocstrings[python]
29
+ - run: mkdocs gh-deploy --force
@@ -0,0 +1,31 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name: Python test and lint
5
+
6
+ on:
7
+ push:
8
+ branches: [ "master" ]
9
+ pull_request:
10
+ branches: [ "master" ]
11
+
12
+ jobs:
13
+ build:
14
+ name: python
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ python-version: ["3.9", "3.10", "3.11", "3.12"]
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ - name: Install uv
23
+ uses: astral-sh/setup-uv@v2
24
+ with:
25
+ version: "0.5.2"
26
+ - name: Install project and dependencies
27
+ run: uv sync --python ${{ matrix.python-version }}
28
+ - name: Run tests
29
+ run: uv run pytest tests
30
+ - name: Lint with ruff
31
+ run: uv run ruff check src/*
@@ -0,0 +1,113 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+ MANIFEST
27
+
28
+ # PyInstaller
29
+ # Usually these files are written by a python script from a template
30
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
31
+ *.manifest
32
+ *.spec
33
+
34
+ # Installer logs
35
+ pip-log.txt
36
+ pip-delete-this-directory.txt
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .coverage
42
+ .coverage.*
43
+ .cache
44
+ nosetests.xml
45
+ coverage.xml
46
+ *.cover
47
+ .hypothesis/
48
+ .pytest_cache/
49
+
50
+ # Translations
51
+ *.mo
52
+ *.pot
53
+
54
+ # Django stuff:
55
+ *.log
56
+ local_settings.py
57
+ db.sqlite3
58
+
59
+ # Flask stuff:
60
+ instance/
61
+ .webassets-cache
62
+
63
+ # Scrapy stuff:
64
+ .scrapy
65
+
66
+ # Sphinx documentation
67
+ docs/_build/
68
+
69
+ # PyBuilder
70
+ target/
71
+
72
+ # Jupyter Notebook
73
+ .ipynb_checkpoints
74
+
75
+ # pyenv
76
+ .python-version
77
+
78
+ # celery beat schedule file
79
+ celerybeat-schedule
80
+
81
+ # SageMath parsed files
82
+ *.sage.py
83
+
84
+ # Environments
85
+ .env
86
+ .venv
87
+ env/
88
+ venv/
89
+ ENV/
90
+ env.bak/
91
+ venv.bak/
92
+
93
+ # Spyder project settings
94
+ .spyderproject
95
+ .spyproject
96
+
97
+ # Rope project settings
98
+ .ropeproject
99
+
100
+ # mkdocs documentation
101
+ /site
102
+
103
+ # mypy
104
+ .mypy_cache/
105
+
106
+ .DS_Store
107
+ test-reports/
108
+ var/
109
+ .vscode
110
+ *.orig
111
+ *.sublime-workspace
112
+
113
+ scratch.ipynb
@@ -0,0 +1,13 @@
1
+ files: src|tests
2
+
3
+ repos:
4
+ - repo: https://github.com/astral-sh/ruff-pre-commit
5
+ rev: v0.11.2
6
+ hooks:
7
+ # Run the linter.
8
+ - id: ruff
9
+ types_or: [ python, pyi]
10
+ - id: ruff
11
+ args: ["--select", "I", "--fix"]
12
+ - id: ruff-format
13
+ types_or: [ python, pyi]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Casey Schneider-Mizell
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,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: cortical-tools
3
+ Version: 0.0.1
4
+ Summary: Client for cortical CAVE datasets
5
+ Author-email: Casey Schneider-Mizell <caseysm@gmail.com>
6
+ License-File: LICENSE
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Requires-Python: >=3.10
9
+ Requires-Dist: caveclient>=7.7.4
10
+ Requires-Dist: cloud-volume>=12.3.1
11
+ Requires-Dist: gpytoolbox>=0.3.6
12
+ Requires-Dist: nglui>=4.4.2
13
+ Requires-Dist: numpy>=2.0.2
14
+ Requires-Dist: pandas>=2.2.3
15
+ Requires-Dist: pcg-skel>=1.3.1
16
+ Requires-Dist: standard-transform>=1.4.1
17
+ Requires-Dist: tqdm-joblib>=0.0.4
18
+ Description-Content-Type: text/markdown
19
+
20
+ Welcome to CortexClient!
@@ -0,0 +1 @@
1
+ Welcome to CortexClient!