aind-metadata-validator 0.3.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.
- aind_metadata_validator-0.3.1/.flake8 +7 -0
- aind_metadata_validator-0.3.1/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- aind_metadata_validator-0.3.1/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- aind_metadata_validator-0.3.1/.github/ISSUE_TEMPLATE/user-story.md +27 -0
- aind_metadata_validator-0.3.1/.github/workflows/init.yml +52 -0
- aind_metadata_validator-0.3.1/.github/workflows/tag_and_publish.yml +88 -0
- aind_metadata_validator-0.3.1/.github/workflows/test_and_lint.yml +26 -0
- aind_metadata_validator-0.3.1/.gitignore +140 -0
- aind_metadata_validator-0.3.1/LICENSE +21 -0
- aind_metadata_validator-0.3.1/PKG-INFO +30 -0
- aind_metadata_validator-0.3.1/README.md +7 -0
- aind_metadata_validator-0.3.1/docs/Makefile +20 -0
- aind_metadata_validator-0.3.1/docs/make.bat +35 -0
- aind_metadata_validator-0.3.1/docs/source/_static/dark-logo.svg +129 -0
- aind_metadata_validator-0.3.1/docs/source/_static/favicon.ico +0 -0
- aind_metadata_validator-0.3.1/docs/source/_static/light-logo.svg +128 -0
- aind_metadata_validator-0.3.1/docs/source/conf.py +53 -0
- aind_metadata_validator-0.3.1/docs/source/index.rst +22 -0
- aind_metadata_validator-0.3.1/pyproject.toml +83 -0
- aind_metadata_validator-0.3.1/setup.cfg +4 -0
- aind_metadata_validator-0.3.1/setup.py +4 -0
- aind_metadata_validator-0.3.1/src/aind_metadata_validator/__init__.py +3 -0
- aind_metadata_validator-0.3.1/src/aind_metadata_validator/core_validator.py +56 -0
- aind_metadata_validator-0.3.1/src/aind_metadata_validator/field_validator.py +155 -0
- aind_metadata_validator-0.3.1/src/aind_metadata_validator/mappings.py +81 -0
- aind_metadata_validator-0.3.1/src/aind_metadata_validator/metadata_validator.py +126 -0
- aind_metadata_validator-0.3.1/src/aind_metadata_validator/sync.py +36 -0
- aind_metadata_validator-0.3.1/src/aind_metadata_validator/utils.py +83 -0
- aind_metadata_validator-0.3.1/src/aind_metadata_validator.egg-info/PKG-INFO +30 -0
- aind_metadata_validator-0.3.1/src/aind_metadata_validator.egg-info/SOURCES.txt +39 -0
- aind_metadata_validator-0.3.1/src/aind_metadata_validator.egg-info/dependency_links.txt +1 -0
- aind_metadata_validator-0.3.1/src/aind_metadata_validator.egg-info/requires.txt +13 -0
- aind_metadata_validator-0.3.1/src/aind_metadata_validator.egg-info/top_level.txt +1 -0
- aind_metadata_validator-0.3.1/tests/__init__.py +1 -0
- aind_metadata_validator-0.3.1/tests/resources/data_description.json +61 -0
- aind_metadata_validator-0.3.1/tests/resources/data_description_invalid.json +61 -0
- aind_metadata_validator-0.3.1/tests/resources/metadata.json +2679 -0
- aind_metadata_validator-0.3.1/tests/test_core.py +44 -0
- aind_metadata_validator-0.3.1/tests/test_field.py +196 -0
- aind_metadata_validator-0.3.1/tests/test_mappings.py +42 -0
- aind_metadata_validator-0.3.1/tests/test_validator.py +158 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Screenshots**
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Desktop (please complete the following information):**
|
|
27
|
+
- OS: [e.g. iOS]
|
|
28
|
+
- Browser [e.g. chrome, safari]
|
|
29
|
+
- Version [e.g. 22]
|
|
30
|
+
|
|
31
|
+
**Smartphone (please complete the following information):**
|
|
32
|
+
- Device: [e.g. iPhone6]
|
|
33
|
+
- OS: [e.g. iOS8.1]
|
|
34
|
+
- Browser [e.g. stock browser, safari]
|
|
35
|
+
- Version [e.g. 22]
|
|
36
|
+
|
|
37
|
+
**Additional context**
|
|
38
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: User story
|
|
3
|
+
about: This template provides a basic structure for user story issues.
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# User story
|
|
11
|
+
As a ..., I want to ..., so I can ...
|
|
12
|
+
|
|
13
|
+
*Ideally, this is in the issue title, but if not, you can put it here. If so, delete this section.*
|
|
14
|
+
|
|
15
|
+
# Acceptance criteria
|
|
16
|
+
- [ ] This is something that can be verified to show that this user story is satisfied.
|
|
17
|
+
|
|
18
|
+
# Sprint Ready Checklist
|
|
19
|
+
- [ ] 1. Acceptance criteria defined
|
|
20
|
+
- [ ] 2. Team understands acceptance criteria
|
|
21
|
+
- [ ] 3. Team has defined solution / steps to satisfy acceptance criteria
|
|
22
|
+
- [ ] 4. Acceptance criteria is verifiable / testable
|
|
23
|
+
- [ ] 5. External / 3rd Party dependencies identified
|
|
24
|
+
- [ ] 6. Ticket is prioritized and sized
|
|
25
|
+
|
|
26
|
+
# Notes
|
|
27
|
+
*Add any helpful notes here.*
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Workflow runs only once when the template is first used.
|
|
2
|
+
# File can be safely deleted after repo is initialized.
|
|
3
|
+
name: Initialize repository
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
initialize-package:
|
|
11
|
+
name: Initialize the package
|
|
12
|
+
if: ${{github.event.repository.name != 'aind-library-template'}}
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
env:
|
|
15
|
+
REPO_NAME: ${{ github.event.repository.name }}
|
|
16
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout
|
|
19
|
+
uses: actions/checkout@v3
|
|
20
|
+
- name: Rename package
|
|
21
|
+
run: |
|
|
22
|
+
pkg_name=$(echo "${REPO_NAME}" | tr - _)
|
|
23
|
+
current_description='description = "Prints messages to stdout. Simple boilerplate for libraries."'
|
|
24
|
+
new_description='description = "Generated from aind-library-template"'
|
|
25
|
+
readme_description='Template for a minimal, basic repository for an AIND library.'
|
|
26
|
+
new_readme_description='Generated from aind-library-template'
|
|
27
|
+
echo "Package Name ${pkg_name}"
|
|
28
|
+
mkdir src/${pkg_name}
|
|
29
|
+
touch src/${pkg_name}/__init__.py
|
|
30
|
+
echo '"""Init package"""' >> src/${pkg_name}/__init__.py
|
|
31
|
+
echo '__version__ = "0.0.0"' >> src/${pkg_name}/__init__.py
|
|
32
|
+
sed -i "s/aind_library_template/${pkg_name}/" pyproject.toml
|
|
33
|
+
sed -i "s/aind-library-template/${REPO_NAME}/" pyproject.toml
|
|
34
|
+
sed -i "s/aind_library_template/${pkg_name}/" docs/source/conf.py
|
|
35
|
+
sed -i "s/${current_description}/${new_description}/" pyproject.toml
|
|
36
|
+
sed -i "/pandas/d" pyproject.toml
|
|
37
|
+
sed -i "s/aind-library-template/${REPO_NAME}/" README.md
|
|
38
|
+
sed -i "s/${readme_description}/${new_readme_description}/" README.md
|
|
39
|
+
- name: Commit changes
|
|
40
|
+
uses: EndBug/add-and-commit@v9
|
|
41
|
+
with:
|
|
42
|
+
default_author: github_actions
|
|
43
|
+
message: "ci: version bump [skip actions]"
|
|
44
|
+
add: '["pyproject.toml", "README.md", "src/*", "docs/source/conf.py"]'
|
|
45
|
+
remove: '["-r src/aind_library_template", "tests/test_message_handler.py"]'
|
|
46
|
+
- name: Add first tag
|
|
47
|
+
run: |
|
|
48
|
+
git tag v0.0.0
|
|
49
|
+
git push origin v0.0.0
|
|
50
|
+
- name: Disable workflow
|
|
51
|
+
run: |
|
|
52
|
+
gh workflow disable -R $GITHUB_REPOSITORY "${{ github.workflow }}"
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
name: Tag and publish
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
# Remove line 65 to enable automated semantic version bumps.
|
|
7
|
+
# Change line 71 from "if: false" to "if: true" to enable PyPI publishing.
|
|
8
|
+
# Requires that svc-aindscicomp be added as an admin to repo.
|
|
9
|
+
jobs:
|
|
10
|
+
update_badges:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
continue-on-error: true
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
with:
|
|
16
|
+
ref: ${{ env.DEFAULT_BRANCH }}
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
token: ${{ secrets.SERVICE_TOKEN }}
|
|
19
|
+
- name: Set up Python 3.10
|
|
20
|
+
uses: actions/setup-python@v3
|
|
21
|
+
with:
|
|
22
|
+
python-version: '3.10'
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
run: |
|
|
25
|
+
python -m pip install -e .[dev] --no-cache-dir
|
|
26
|
+
- name: Get Python version and Update README.md
|
|
27
|
+
run: |
|
|
28
|
+
python_version=$(grep "requires-python" pyproject.toml | grep -o ">=[^\"]*")
|
|
29
|
+
python_badge=$(grep -o 'python-[^)]*' README.md)
|
|
30
|
+
new_python_badge="python-$python_version-blue?logo=python"
|
|
31
|
+
sed -i "s/$python_badge/$new_python_badge/g" README.md
|
|
32
|
+
- name: Get interrogate values and Update README.md
|
|
33
|
+
run: |
|
|
34
|
+
interrogate_val=$(interrogate . | grep -o 'actual: [0-9]*\.[0-9]*' | awk '{print $2}')
|
|
35
|
+
interrogate_badge=$(grep -o 'interrogate-[^)]*' README.md)
|
|
36
|
+
if (( $(echo "$interrogate_val >= 90.00" | bc -l) )); then
|
|
37
|
+
new_interrogate_badge="interrogate-$interrogate_val%25-brightgreen"
|
|
38
|
+
elif (( $(echo "$interrogate_val < 80.00" | bc -l) )); then
|
|
39
|
+
new_interrogate_badge="interrogate-$interrogate_val%25-red"
|
|
40
|
+
else
|
|
41
|
+
new_interrogate_badge="interrogate-$interrogate_val%25-yellow"
|
|
42
|
+
fi
|
|
43
|
+
sed -i "s/$interrogate_badge/$new_interrogate_badge/g" README.md
|
|
44
|
+
- name: Get Coverage values and Update README.md
|
|
45
|
+
run: |
|
|
46
|
+
coverage run -m unittest discover
|
|
47
|
+
coverage_val=$(coverage report | grep "^TOTAL" | grep -o '[0-9]\+%' | grep -o '[0-9]\+')
|
|
48
|
+
coverage_badge=$(grep -o "coverage-[^?]*" README.md)
|
|
49
|
+
if (( $(echo "$coverage_val >= 90.00" | bc -l) )); then
|
|
50
|
+
new_coverage_badge="coverage-$coverage_val%25-brightgreen"
|
|
51
|
+
elif (( $(echo "$coverage_val < 80.00" | bc -l) )); then
|
|
52
|
+
new_coverage_badge="coverage-$coverage_val%25-red"
|
|
53
|
+
else
|
|
54
|
+
new_coverage_badge="coverage-$coverage_val%25-yellow"
|
|
55
|
+
fi
|
|
56
|
+
sed -i "s/$coverage_badge/$new_coverage_badge/g" README.md
|
|
57
|
+
- name: Commit changes
|
|
58
|
+
uses: EndBug/add-and-commit@v9
|
|
59
|
+
with:
|
|
60
|
+
default_author: github_actions
|
|
61
|
+
message: "ci: update badges [skip actions]"
|
|
62
|
+
add: '["README.md"]'
|
|
63
|
+
tag:
|
|
64
|
+
needs: update_badges
|
|
65
|
+
uses: AllenNeuralDynamics/aind-github-actions/.github/workflows/tag.yml@main
|
|
66
|
+
secrets:
|
|
67
|
+
SERVICE_TOKEN: ${{ secrets.SERVICE_TOKEN }}
|
|
68
|
+
publish:
|
|
69
|
+
needs: tag
|
|
70
|
+
if: true
|
|
71
|
+
runs-on: ubuntu-latest
|
|
72
|
+
steps:
|
|
73
|
+
- uses: actions/checkout@v3
|
|
74
|
+
- name: Pull latest changes
|
|
75
|
+
run: git pull origin main
|
|
76
|
+
- name: Set up Python 3.10
|
|
77
|
+
uses: actions/setup-python@v2
|
|
78
|
+
with:
|
|
79
|
+
python-version: '3.10'
|
|
80
|
+
- name: Install dependencies
|
|
81
|
+
run: |
|
|
82
|
+
pip install --upgrade setuptools wheel twine build
|
|
83
|
+
python -m build
|
|
84
|
+
twine check dist/*
|
|
85
|
+
- name: Publish on PyPI
|
|
86
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
87
|
+
with:
|
|
88
|
+
password: ${{ secrets.AIND_PYPI_TOKEN }}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Lint and run tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
ci:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v3
|
|
16
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
17
|
+
uses: actions/setup-python@v3
|
|
18
|
+
with:
|
|
19
|
+
python-version: ${{ matrix.python-version }}
|
|
20
|
+
- name: Install dependencies
|
|
21
|
+
run: |
|
|
22
|
+
python -m pip install -e .[dev]
|
|
23
|
+
- name: Run linter checks
|
|
24
|
+
run: flake8 . && interrogate --verbose .
|
|
25
|
+
- name: Run tests and coverage
|
|
26
|
+
run: coverage run -m unittest discover && coverage report
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
pip-wheel-metadata/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
# Usually these files are written by a python script from a template
|
|
32
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
+
*.manifest
|
|
34
|
+
*.spec
|
|
35
|
+
|
|
36
|
+
# Installer logs
|
|
37
|
+
pip-log.txt
|
|
38
|
+
pip-delete-this-directory.txt
|
|
39
|
+
|
|
40
|
+
# Unit test / coverage reports
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.nox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
*.py,cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
target/
|
|
76
|
+
|
|
77
|
+
# Jupyter Notebook
|
|
78
|
+
.ipynb_checkpoints
|
|
79
|
+
|
|
80
|
+
# IPython
|
|
81
|
+
profile_default/
|
|
82
|
+
ipython_config.py
|
|
83
|
+
|
|
84
|
+
# pyenv
|
|
85
|
+
.python-version
|
|
86
|
+
|
|
87
|
+
# pipenv
|
|
88
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
89
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
90
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
91
|
+
# install all needed dependencies.
|
|
92
|
+
#Pipfile.lock
|
|
93
|
+
|
|
94
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
95
|
+
__pypackages__/
|
|
96
|
+
|
|
97
|
+
# Celery stuff
|
|
98
|
+
celerybeat-schedule
|
|
99
|
+
celerybeat.pid
|
|
100
|
+
|
|
101
|
+
# SageMath parsed files
|
|
102
|
+
*.sage.py
|
|
103
|
+
|
|
104
|
+
# Environments
|
|
105
|
+
.env
|
|
106
|
+
.venv
|
|
107
|
+
env/
|
|
108
|
+
venv/
|
|
109
|
+
ENV/
|
|
110
|
+
env.bak/
|
|
111
|
+
venv.bak/
|
|
112
|
+
|
|
113
|
+
# Spyder project settings
|
|
114
|
+
.spyderproject
|
|
115
|
+
.spyproject
|
|
116
|
+
|
|
117
|
+
# Rope project settings
|
|
118
|
+
.ropeproject
|
|
119
|
+
|
|
120
|
+
# mkdocs documentation
|
|
121
|
+
/site
|
|
122
|
+
|
|
123
|
+
# mypy
|
|
124
|
+
.mypy_cache/
|
|
125
|
+
.dmypy.json
|
|
126
|
+
dmypy.json
|
|
127
|
+
|
|
128
|
+
# Pyre type checker
|
|
129
|
+
.pyre/
|
|
130
|
+
|
|
131
|
+
# PyCharm
|
|
132
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
133
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
134
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
135
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
136
|
+
.idea/
|
|
137
|
+
|
|
138
|
+
# MacOs
|
|
139
|
+
**/.DS_Store
|
|
140
|
+
validation_results.csv
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Allen Institute for Neural Dynamics
|
|
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,30 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: aind-metadata-validator
|
|
3
|
+
Version: 0.3.1
|
|
4
|
+
Summary: Generated from aind-library-template
|
|
5
|
+
Author: Allen Institute for Neural Dynamics
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Requires-Python: >=3.7
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: pydantic
|
|
12
|
+
Requires-Dist: aind-data-schema
|
|
13
|
+
Requires-Dist: aind-data-access-api[docdb]
|
|
14
|
+
Requires-Dist: pandas
|
|
15
|
+
Provides-Extra: dev
|
|
16
|
+
Requires-Dist: black; extra == "dev"
|
|
17
|
+
Requires-Dist: coverage; extra == "dev"
|
|
18
|
+
Requires-Dist: flake8; extra == "dev"
|
|
19
|
+
Requires-Dist: interrogate; extra == "dev"
|
|
20
|
+
Requires-Dist: isort; extra == "dev"
|
|
21
|
+
Requires-Dist: Sphinx; extra == "dev"
|
|
22
|
+
Requires-Dist: furo; extra == "dev"
|
|
23
|
+
|
|
24
|
+
# aind-metadata-validator
|
|
25
|
+
|
|
26
|
+
`pip install aind-metadata-validator`
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
from aind_metadata_validator import [todo]
|
|
30
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line, and also
|
|
5
|
+
# from the environment for the first two.
|
|
6
|
+
SPHINXOPTS ?=
|
|
7
|
+
SPHINXBUILD ?= sphinx-build
|
|
8
|
+
SOURCEDIR = source
|
|
9
|
+
BUILDDIR = build
|
|
10
|
+
|
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
|
12
|
+
help:
|
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
+
|
|
15
|
+
.PHONY: help Makefile
|
|
16
|
+
|
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
+
%: Makefile
|
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@ECHO OFF
|
|
2
|
+
|
|
3
|
+
pushd %~dp0
|
|
4
|
+
|
|
5
|
+
REM Command file for Sphinx documentation
|
|
6
|
+
|
|
7
|
+
if "%SPHINXBUILD%" == "" (
|
|
8
|
+
set SPHINXBUILD=sphinx-build
|
|
9
|
+
)
|
|
10
|
+
set SOURCEDIR=source
|
|
11
|
+
set BUILDDIR=build
|
|
12
|
+
|
|
13
|
+
%SPHINXBUILD% >NUL 2>NUL
|
|
14
|
+
if errorlevel 9009 (
|
|
15
|
+
echo.
|
|
16
|
+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
|
17
|
+
echo.installed, then set the SPHINXBUILD environment variable to point
|
|
18
|
+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
|
19
|
+
echo.may add the Sphinx directory to PATH.
|
|
20
|
+
echo.
|
|
21
|
+
echo.If you don't have Sphinx installed, grab it from
|
|
22
|
+
echo.https://www.sphinx-doc.org/
|
|
23
|
+
exit /b 1
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
if "%1" == "" goto help
|
|
27
|
+
|
|
28
|
+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
29
|
+
goto end
|
|
30
|
+
|
|
31
|
+
:help
|
|
32
|
+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
33
|
+
|
|
34
|
+
:end
|
|
35
|
+
popd
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 26.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 397.34 91.96" style="enable-background:new 0 0 397.34 91.96;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:#CFCFCE;}
|
|
7
|
+
.st1{fill:#7DC2EB;}
|
|
8
|
+
.st2{fill:#358CCB;}
|
|
9
|
+
</style>
|
|
10
|
+
<g>
|
|
11
|
+
<g>
|
|
12
|
+
<g>
|
|
13
|
+
<path class="st0" d="M200.51,35.53c-1.43,0-2.6-0.24-3.52-0.74c-0.92-0.49-1.64-1.11-2.18-1.87c-0.54-0.75-0.91-1.57-1.12-2.45
|
|
14
|
+
c-0.2-0.89-0.31-1.73-0.31-2.52V16.03h1.93v11.71c0,0.77,0.09,1.52,0.27,2.24c0.18,0.72,0.47,1.37,0.87,1.93
|
|
15
|
+
c0.4,0.56,0.94,1.02,1.6,1.37c0.66,0.35,1.48,0.52,2.44,0.52c0.97,0,1.78-0.17,2.45-0.52c0.66-0.35,1.2-0.81,1.6-1.37
|
|
16
|
+
c0.4-0.57,0.7-1.21,0.88-1.93c0.18-0.73,0.27-1.47,0.27-2.24V16.03h1.93v11.93c0,0.79-0.1,1.63-0.31,2.52
|
|
17
|
+
c-0.21,0.88-0.58,1.71-1.11,2.45c-0.54,0.76-1.27,1.37-2.19,1.87C203.09,35.29,201.92,35.53,200.51,35.53"/>
|
|
18
|
+
</g>
|
|
19
|
+
<g>
|
|
20
|
+
<polygon class="st0" points="219.74,35.05 217.81,35.05 217.81,17.75 211.44,17.75 211.44,16.04 226.11,16.04 226.11,17.75
|
|
21
|
+
219.74,17.75 "/>
|
|
22
|
+
</g>
|
|
23
|
+
<g>
|
|
24
|
+
<polygon class="st0" points="231.96,33.33 242.15,33.33 242.15,35.05 230.03,35.05 230.03,16.03 241.82,16.03 241.82,17.75
|
|
25
|
+
231.96,17.75 231.96,24.28 241.18,24.28 241.18,26 231.96,26 "/>
|
|
26
|
+
</g>
|
|
27
|
+
<g>
|
|
28
|
+
<path class="st1" d="M258.03,27.3h-2.07l-1.35,7.75h-1.26l1.35-7.75h-1.86l0.21-1.05h1.82l0.42-2.39
|
|
29
|
+
c0.07-0.44,0.19-0.86,0.35-1.25c0.17-0.39,0.38-0.74,0.65-1.03c0.27-0.29,0.59-0.53,0.97-0.71c0.38-0.18,0.82-0.26,1.32-0.26
|
|
30
|
+
c0.16,0,0.33,0.01,0.51,0.03c0.18,0.02,0.35,0.05,0.53,0.1l-0.3,1.11c-0.26-0.07-0.56-0.11-0.88-0.11c-0.3,0-0.56,0.06-0.78,0.17
|
|
31
|
+
c-0.22,0.11-0.4,0.27-0.55,0.48c-0.15,0.2-0.26,0.45-0.35,0.72c-0.09,0.28-0.17,0.57-0.22,0.89l-0.39,2.26h2.11L258.03,27.3z"/>
|
|
32
|
+
</g>
|
|
33
|
+
<g>
|
|
34
|
+
<path class="st1" d="M263.27,35.28c-0.59,0-1.14-0.09-1.64-0.28c-0.5-0.19-0.93-0.44-1.29-0.78c-0.36-0.33-0.64-0.73-0.84-1.2
|
|
35
|
+
c-0.2-0.47-0.3-0.98-0.3-1.55c0-0.74,0.13-1.44,0.38-2.09c0.26-0.66,0.62-1.24,1.08-1.73c0.46-0.49,1.02-0.88,1.66-1.17
|
|
36
|
+
c0.64-0.29,1.34-0.43,2.1-0.43c0.6,0,1.15,0.09,1.65,0.27c0.49,0.18,0.92,0.45,1.28,0.78c0.36,0.34,0.63,0.74,0.84,1.2
|
|
37
|
+
c0.2,0.46,0.3,0.98,0.3,1.54c0,0.75-0.13,1.46-0.38,2.12c-0.26,0.67-0.61,1.24-1.08,1.74c-0.46,0.49-1.02,0.88-1.66,1.16
|
|
38
|
+
C264.74,35.13,264.04,35.28,263.27,35.28 M267.18,29.91c0-0.4-0.06-0.78-0.19-1.12c-0.13-0.35-0.31-0.64-0.55-0.9
|
|
39
|
+
c-0.24-0.25-0.54-0.45-0.89-0.59c-0.35-0.15-0.75-0.22-1.18-0.22c-0.55,0-1.06,0.12-1.52,0.35c-0.46,0.23-0.86,0.55-1.2,0.94
|
|
40
|
+
c-0.34,0.4-0.61,0.86-0.8,1.38c-0.2,0.52-0.29,1.07-0.29,1.65c0,0.4,0.07,0.78,0.19,1.12c0.12,0.35,0.31,0.64,0.55,0.9
|
|
41
|
+
c0.25,0.25,0.54,0.45,0.88,0.59c0.34,0.15,0.74,0.22,1.17,0.22c0.56,0,1.07-0.12,1.55-0.35c0.47-0.23,0.87-0.54,1.21-0.93
|
|
42
|
+
c0.34-0.39,0.6-0.84,0.79-1.37C267.09,31.05,267.18,30.5,267.18,29.91"/>
|
|
43
|
+
</g>
|
|
44
|
+
<g>
|
|
45
|
+
<path class="st1" d="M272.57,27.27c0.05-0.38,0.1-0.71,0.12-1.01h1.2c-0.03,0.24-0.06,0.5-0.09,0.79
|
|
46
|
+
c-0.04,0.29-0.07,0.53-0.11,0.72h0.04c0.32-0.52,0.74-0.93,1.24-1.25c0.5-0.32,1.07-0.48,1.69-0.48c0.16,0,0.3,0.01,0.43,0.02
|
|
47
|
+
c0.13,0.01,0.26,0.04,0.39,0.07l-0.3,1.2c-0.07-0.03-0.18-0.05-0.35-0.08c-0.17-0.02-0.34-0.04-0.52-0.04
|
|
48
|
+
c-0.34,0-0.67,0.06-0.99,0.19c-0.33,0.13-0.63,0.32-0.89,0.59c-0.27,0.27-0.51,0.61-0.71,1.03c-0.21,0.42-0.36,0.92-0.46,1.51
|
|
49
|
+
l-0.79,4.51h-1.26l1.2-6.86C272.46,27.95,272.52,27.64,272.57,27.27"/>
|
|
50
|
+
</g>
|
|
51
|
+
<g>
|
|
52
|
+
<path class="st0" d="M11.34,35.05H9.22l8.22-19.02h1.88l8.17,19.02h-2.15l-2.09-5h-9.83L11.34,35.05z M14.13,28.28h8.38
|
|
53
|
+
l-4.19-10.1L14.13,28.28z"/>
|
|
54
|
+
</g>
|
|
55
|
+
<g>
|
|
56
|
+
<polygon class="st0" points="33.29,33.33 42.16,33.33 42.16,35.05 31.36,35.05 31.36,16.03 33.29,16.03 "/>
|
|
57
|
+
</g>
|
|
58
|
+
<g>
|
|
59
|
+
<polygon class="st0" points="48.06,33.33 56.93,33.33 56.93,35.05 46.13,35.05 46.13,16.03 48.06,16.03 "/>
|
|
60
|
+
</g>
|
|
61
|
+
<g>
|
|
62
|
+
<polygon class="st0" points="62.84,33.33 73.02,33.33 73.02,35.05 60.91,35.05 60.91,16.03 72.7,16.03 72.7,17.75 62.84,17.75
|
|
63
|
+
62.84,24.28 72.05,24.28 72.05,26 62.84,26 "/>
|
|
64
|
+
</g>
|
|
65
|
+
<g>
|
|
66
|
+
<polygon class="st0" points="91.37,32.23 91.42,32.23 91.42,16.03 93.35,16.03 93.35,35.05 90.93,35.05 79.87,18.7 79.81,18.7
|
|
67
|
+
79.81,35.05 77.88,35.05 77.88,16.03 80.3,16.03 "/>
|
|
68
|
+
</g>
|
|
69
|
+
<g>
|
|
70
|
+
<rect x="107.27" y="16.03" class="st0" width="1.93" height="19.02"/>
|
|
71
|
+
</g>
|
|
72
|
+
<g>
|
|
73
|
+
<polygon class="st0" points="128.81,32.23 128.87,32.23 128.87,16.03 130.8,16.03 130.8,35.05 128.38,35.05 117.32,18.7
|
|
74
|
+
117.26,18.7 117.26,35.05 115.33,35.05 115.33,16.03 117.75,16.03 "/>
|
|
75
|
+
</g>
|
|
76
|
+
<g>
|
|
77
|
+
<path class="st0" d="M146.14,19.09c-0.42-0.57-0.94-1.03-1.59-1.38c-0.64-0.35-1.42-0.53-2.33-0.53c-0.47,0-0.94,0.07-1.43,0.21
|
|
78
|
+
c-0.48,0.14-0.92,0.36-1.32,0.66c-0.39,0.3-0.71,0.67-0.95,1.12c-0.24,0.45-0.36,0.98-0.36,1.58c0,0.61,0.12,1.11,0.35,1.51
|
|
79
|
+
c0.23,0.39,0.54,0.73,0.93,1.01c0.38,0.28,0.82,0.51,1.31,0.69c0.49,0.18,1,0.36,1.54,0.54c0.66,0.21,1.33,0.45,2,0.7
|
|
80
|
+
c0.67,0.25,1.27,0.58,1.81,0.98c0.53,0.4,0.97,0.91,1.31,1.53c0.34,0.62,0.51,1.4,0.51,2.35c0,0.95-0.18,1.77-0.54,2.46
|
|
81
|
+
c-0.36,0.69-0.83,1.26-1.41,1.71c-0.58,0.45-1.24,0.78-1.98,1c-0.74,0.21-1.49,0.32-2.24,0.32c-0.57,0-1.15-0.06-1.72-0.18
|
|
82
|
+
c-0.57-0.12-1.12-0.29-1.64-0.52c-0.52-0.23-1-0.53-1.45-0.89c-0.45-0.36-0.84-0.77-1.18-1.24l1.67-1.23
|
|
83
|
+
c0.41,0.68,0.99,1.25,1.73,1.71c0.74,0.46,1.62,0.69,2.62,0.69c0.48,0,0.98-0.07,1.48-0.23c0.5-0.15,0.95-0.38,1.35-0.7
|
|
84
|
+
c0.4-0.32,0.74-0.7,1-1.16c0.26-0.46,0.39-0.99,0.39-1.6c0-0.66-0.13-1.21-0.39-1.65c-0.26-0.44-0.61-0.81-1.04-1.1
|
|
85
|
+
c-0.43-0.29-0.92-0.54-1.47-0.74c-0.56-0.2-1.14-0.4-1.75-0.59c-0.63-0.19-1.24-0.42-1.85-0.67c-0.61-0.25-1.16-0.58-1.64-0.98
|
|
86
|
+
c-0.48-0.4-0.87-0.9-1.17-1.49c-0.3-0.59-0.44-1.32-0.44-2.18c0-0.91,0.18-1.7,0.55-2.36c0.37-0.66,0.85-1.21,1.44-1.64
|
|
87
|
+
c0.59-0.43,1.25-0.75,1.96-0.94c0.72-0.2,1.43-0.29,2.12-0.29c1.29,0,2.39,0.23,3.3,0.68c0.91,0.46,1.6,1,2.07,1.63L146.14,19.09
|
|
88
|
+
z"/>
|
|
89
|
+
</g>
|
|
90
|
+
<g>
|
|
91
|
+
<polygon class="st0" points="158.77,35.05 156.83,35.05 156.83,17.75 150.47,17.75 150.47,16.04 165.13,16.04 165.13,17.75
|
|
92
|
+
158.77,17.75 "/>
|
|
93
|
+
</g>
|
|
94
|
+
<g>
|
|
95
|
+
<rect x="169.05" y="16.03" class="st0" width="1.94" height="19.02"/>
|
|
96
|
+
</g>
|
|
97
|
+
<g>
|
|
98
|
+
<polygon class="st0" points="183.21,35.05 181.28,35.05 181.28,17.75 174.91,17.75 174.91,16.04 189.58,16.04 189.58,17.75
|
|
99
|
+
183.21,17.75 "/>
|
|
100
|
+
</g>
|
|
101
|
+
</g>
|
|
102
|
+
<g>
|
|
103
|
+
<path class="st2" d="M30.36,73.04h0.08V48.26h2.97V77.5H29.7L12.28,52.48h-0.08V77.5H9.22V48.26h3.72L30.36,73.04z"/>
|
|
104
|
+
<path class="st2" d="M44.32,74.77h15.65v2.73H41.35V48.26h18.13v2.72H44.32v9.95h14.16v2.73H44.32V74.77z"/>
|
|
105
|
+
<path class="st2" d="M86.73,66.6c0,4.87-1.94,11.64-10.69,11.64S65.34,71.47,65.34,66.6V48.26h2.97v18c0,8.42,5.49,9.25,7.72,9.25
|
|
106
|
+
s7.72-0.83,7.72-9.25v-18h2.97V66.6z"/>
|
|
107
|
+
<path class="st2" d="M97.13,77.5h-2.97V48.26h9c5.95,0,9.62,2.56,9.62,7.8c0,4.05-2.68,7.14-7.47,7.56l8.42,13.87h-3.63
|
|
108
|
+
l-8.01-13.58h-4.96V77.5z M97.13,61.19h5.29c5.33,0,7.14-2.31,7.14-5.12s-1.82-5.08-7.14-5.08h-5.29V61.19z"/>
|
|
109
|
+
<path class="st2" d="M118.15,77.5h-3.47l12.72-29.23h2.89l12.72,29.23h-3.47l-3.22-7.68h-14.95L118.15,77.5z M122.49,67.09h12.68
|
|
110
|
+
l-6.32-15.36L122.49,67.09z"/>
|
|
111
|
+
<path class="st2" d="M149.95,74.77h13.63v2.73h-16.6V48.26h2.97V74.77z"/>
|
|
112
|
+
<path class="st2" d="M178.69,48.26h9.7c7.31,0,15.36,4.87,15.36,14.62c0,9.75-8.05,14.62-15.36,14.62h-9.7V48.26z M181.66,74.77
|
|
113
|
+
h5.78c8.92,0,13.09-5.86,13.09-11.89s-4.17-11.89-13.09-11.89h-5.78V74.77z"/>
|
|
114
|
+
<path class="st2" d="M219.07,77.5h-2.97V64.9l-10.94-16.64h3.72l8.71,13.79l8.71-13.79h3.72L219.07,64.9V77.5z"/>
|
|
115
|
+
<path class="st2" d="M254.55,73.04h0.08V48.26h2.97V77.5h-3.72l-17.42-25.02h-0.08V77.5h-2.97V48.26h3.72L254.55,73.04z"/>
|
|
116
|
+
<path class="st2" d="M265.04,77.5h-3.47l12.72-29.23h2.89l12.72,29.23h-3.47l-3.22-7.68h-14.95L265.04,77.5z M269.37,67.09h12.68
|
|
117
|
+
l-6.32-15.36L269.37,67.09z"/>
|
|
118
|
+
<path class="st2" d="M308.27,72.05l9.87-23.78h4.54V77.5h-2.97V52.23h-0.08L309.05,77.5h-1.57l-10.57-25.27h-0.08V77.5h-2.97
|
|
119
|
+
V48.26h4.54L308.27,72.05z"/>
|
|
120
|
+
<path class="st2" d="M333.58,77.5h-2.97V48.26h2.97V77.5z"/>
|
|
121
|
+
<path class="st2" d="M365.59,72.87c-1.94,3.01-5.99,5.37-10.82,5.37c-8.71,0-15.24-6.48-15.24-15.36
|
|
122
|
+
c0-8.88,6.52-15.36,15.24-15.36c3.63,0,7.56,1.36,10.12,4.62l-2.6,1.94c-1.16-1.9-4.42-3.84-7.51-3.84
|
|
123
|
+
c-7.51,0-12.02,5.91-12.02,12.63c0,6.73,4.5,12.64,12.02,12.64c3.06,0,6.19-0.99,8.38-4.38L365.59,72.87z"/>
|
|
124
|
+
<path class="st2" d="M384.42,53.1c-1.28-1.9-3.18-2.85-5.66-2.85c-3.06,0-6.24,1.61-6.24,5.29c0,7.89,14.99,3.72,14.99,14.25
|
|
125
|
+
c0,5.33-5,8.46-9.62,8.46c-3.55,0-6.98-1.28-9.21-4.33l2.68-1.94c1.24,2.15,3.59,3.55,6.65,3.55c2.93,0,6.28-1.9,6.28-5.33
|
|
126
|
+
c0-8.26-14.99-3.67-14.99-14.37c0-5.66,4.71-8.3,9.46-8.3c3.3,0,5.95,0.91,8.26,3.55L384.42,53.1z"/>
|
|
127
|
+
</g>
|
|
128
|
+
</g>
|
|
129
|
+
</svg>
|
|
Binary file
|