nemos 0.2.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.
- nemos-0.2.1/.github/CODEOWNERS +1 -0
- nemos-0.2.1/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- nemos-0.2.1/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- nemos-0.2.1/.github/workflows/ci.yml +95 -0
- nemos-0.2.1/.github/workflows/connect.yml +32 -0
- nemos-0.2.1/.github/workflows/deploy-pure-python.yml +73 -0
- nemos-0.2.1/.gitignore +156 -0
- nemos-0.2.1/.readthedocs.yaml +36 -0
- nemos-0.2.1/CCN-letterFoot.png +0 -0
- nemos-0.2.1/CITATION.cff +23 -0
- nemos-0.2.1/CODE_OF_CONDUCT.md +125 -0
- nemos-0.2.1/CONTRIBUTING.md +284 -0
- nemos-0.2.1/LICENSE +21 -0
- nemos-0.2.1/PKG-INFO +277 -0
- nemos-0.2.1/README.md +184 -0
- nemos-0.2.1/bash_scripts/prevent_absolute_links_to_docs.sh +9 -0
- nemos-0.2.1/codecov.yml +3 -0
- nemos-0.2.1/docs/Makefile +21 -0
- nemos-0.2.1/docs/_templates/autosummary/class.rst +34 -0
- nemos-0.2.1/docs/_templates/layout.html +16 -0
- nemos-0.2.1/docs/api_reference.rst +207 -0
- nemos-0.2.1/docs/assets/CCN-logo-wText.png +0 -0
- nemos-0.2.1/docs/assets/NeMoS_Icon_CMYK_Full.svg +1 -0
- nemos-0.2.1/docs/assets/NeMoS_Icon_CMYK_White.svg +1 -0
- nemos-0.2.1/docs/assets/NeMoS_Logo_CMYK_Full.svg +1 -0
- nemos-0.2.1/docs/assets/NeMoS_Logo_CMYK_White.svg +1 -0
- nemos-0.2.1/docs/assets/NeMoS_favicon.ico +0 -0
- nemos-0.2.1/docs/assets/allen_data.png +0 -0
- nemos-0.2.1/docs/assets/allen_data_annotated-epochs.svg +118 -0
- nemos-0.2.1/docs/assets/allen_data_annotated-response.svg +111 -0
- nemos-0.2.1/docs/assets/allen_data_annotated-stimulus.svg +110 -0
- nemos-0.2.1/docs/assets/allen_data_annotated-units.svg +121 -0
- nemos-0.2.1/docs/assets/allen_data_annotated.gif +0 -0
- nemos-0.2.1/docs/assets/classes_nemos.png +0 -0
- nemos-0.2.1/docs/assets/classes_nemos.svg +739 -0
- nemos-0.2.1/docs/assets/glm_features_scheme.svg +934 -0
- nemos-0.2.1/docs/assets/glm_population_scheme.svg +951 -0
- nemos-0.2.1/docs/assets/glm_scheme.svg +795 -0
- nemos-0.2.1/docs/assets/head_dir_tuning.jpg +0 -0
- nemos-0.2.1/docs/assets/kfold.svg +882 -0
- nemos-0.2.1/docs/assets/lnp_model.svg +415 -0
- nemos-0.2.1/docs/assets/logo_flatiron_white.svg +206 -0
- nemos-0.2.1/docs/assets/nemos_sklearn.svg +119 -0
- nemos-0.2.1/docs/assets/pipeline.svg +272 -0
- nemos-0.2.1/docs/assets/poisson_model_calc_stepsize.pdf +0 -0
- nemos-0.2.1/docs/assets/stylesheets/custom.css +122 -0
- nemos-0.2.1/docs/background/README.md +64 -0
- nemos-0.2.1/docs/background/basis/README.md +149 -0
- nemos-0.2.1/docs/background/basis/plot_01_1D_basis_function.md +240 -0
- nemos-0.2.1/docs/background/basis/plot_02_ND_basis_function.md +385 -0
- nemos-0.2.1/docs/background/plot_00_conceptual_intro.md +258 -0
- nemos-0.2.1/docs/background/plot_03_1D_convolution.md +221 -0
- nemos-0.2.1/docs/conf.py +174 -0
- nemos-0.2.1/docs/developers_notes/01-base_class.md +58 -0
- nemos-0.2.1/docs/developers_notes/02-base_regressor.md +71 -0
- nemos-0.2.1/docs/developers_notes/03-glm.md +94 -0
- nemos-0.2.1/docs/developers_notes/04-basis_module.md +83 -0
- nemos-0.2.1/docs/developers_notes/05-observation_models.md +60 -0
- nemos-0.2.1/docs/developers_notes/06-regularizer.md +74 -0
- nemos-0.2.1/docs/developers_notes/README.md +55 -0
- nemos-0.2.1/docs/getting_help.md +20 -0
- nemos-0.2.1/docs/how_to_guide/README.md +147 -0
- nemos-0.2.1/docs/how_to_guide/categorical_predictors.md +163 -0
- nemos-0.2.1/docs/how_to_guide/custom_predictors.md +63 -0
- nemos-0.2.1/docs/how_to_guide/plot_02_glm_demo.md +463 -0
- nemos-0.2.1/docs/how_to_guide/plot_03_population_glm.md +269 -0
- nemos-0.2.1/docs/how_to_guide/plot_04_batch_glm.md +293 -0
- nemos-0.2.1/docs/how_to_guide/plot_05_transformer_basis.md +184 -0
- nemos-0.2.1/docs/how_to_guide/plot_06_sklearn_pipeline_cv_demo.md +608 -0
- nemos-0.2.1/docs/how_to_guide/plot_07_glm_pytree.md +404 -0
- nemos-0.2.1/docs/how_to_guide/raw_history_feature.md +170 -0
- nemos-0.2.1/docs/index.md +147 -0
- nemos-0.2.1/docs/installation.md +94 -0
- nemos-0.2.1/docs/javascripts/katex.js +11 -0
- nemos-0.2.1/docs/make.bat +35 -0
- nemos-0.2.1/docs/quickstart.md +451 -0
- nemos-0.2.1/docs/scripts/basis_figs.py +142 -0
- nemos-0.2.1/docs/scripts/glm_predictors.py +116 -0
- nemos-0.2.1/docs/tutorials/README.md +95 -0
- nemos-0.2.1/docs/tutorials/plot_01_current_injection.md +757 -0
- nemos-0.2.1/docs/tutorials/plot_02_head_direction.md +678 -0
- nemos-0.2.1/docs/tutorials/plot_03_grid_cells.md +356 -0
- nemos-0.2.1/docs/tutorials/plot_04_v1_cells.md +381 -0
- nemos-0.2.1/docs/tutorials/plot_05_place_cells.md +542 -0
- nemos-0.2.1/docs/tutorials/plot_06_calcium_imaging.md +393 -0
- nemos-0.2.1/pyproject.toml +148 -0
- nemos-0.2.1/setup.cfg +4 -0
- nemos-0.2.1/src/nemos/__init__.py +19 -0
- nemos-0.2.1/src/nemos/_documentation_utils/__init__.py +24 -0
- nemos-0.2.1/src/nemos/_documentation_utils/_myst_nb_glue.py +157 -0
- nemos-0.2.1/src/nemos/_documentation_utils/plotting.py +1132 -0
- nemos-0.2.1/src/nemos/_inspect_utils/__init__.py +34 -0
- nemos-0.2.1/src/nemos/_inspect_utils/inspect_utils.py +247 -0
- nemos-0.2.1/src/nemos/_regularizer_builder.py +45 -0
- nemos-0.2.1/src/nemos/base_class.py +153 -0
- nemos-0.2.1/src/nemos/base_regressor.py +663 -0
- nemos-0.2.1/src/nemos/basis/__init__.py +18 -0
- nemos-0.2.1/src/nemos/basis/_basis.py +1408 -0
- nemos-0.2.1/src/nemos/basis/_basis_mixin.py +686 -0
- nemos-0.2.1/src/nemos/basis/_decaying_exponential.py +216 -0
- nemos-0.2.1/src/nemos/basis/_identity.py +183 -0
- nemos-0.2.1/src/nemos/basis/_raised_cosine_basis.py +359 -0
- nemos-0.2.1/src/nemos/basis/_spline_basis.py +696 -0
- nemos-0.2.1/src/nemos/basis/_transformer_basis.py +510 -0
- nemos-0.2.1/src/nemos/basis/basis.py +2096 -0
- nemos-0.2.1/src/nemos/convolve.py +338 -0
- nemos-0.2.1/src/nemos/exceptions.py +19 -0
- nemos-0.2.1/src/nemos/fetch/__init__.py +1 -0
- nemos-0.2.1/src/nemos/fetch/fetch_data.py +197 -0
- nemos-0.2.1/src/nemos/glm.py +1647 -0
- nemos-0.2.1/src/nemos/identifiability_constraints.py +360 -0
- nemos-0.2.1/src/nemos/initialize_regressor.py +104 -0
- nemos-0.2.1/src/nemos/observation_models.py +939 -0
- nemos-0.2.1/src/nemos/proximal_operator.py +186 -0
- nemos-0.2.1/src/nemos/pytrees.py +93 -0
- nemos-0.2.1/src/nemos/regularizer.py +486 -0
- nemos-0.2.1/src/nemos/simulation.py +417 -0
- nemos-0.2.1/src/nemos/solvers/__init__.py +5 -0
- nemos-0.2.1/src/nemos/solvers/_compute_defaults.py +70 -0
- nemos-0.2.1/src/nemos/solvers/_svrg.py +771 -0
- nemos-0.2.1/src/nemos/solvers/_svrg_defaults.py +537 -0
- nemos-0.2.1/src/nemos/styles/__init__.py +3 -0
- nemos-0.2.1/src/nemos/styles/nemos.mplstyle +6 -0
- nemos-0.2.1/src/nemos/tree_utils.py +207 -0
- nemos-0.2.1/src/nemos/type_casting.py +412 -0
- nemos-0.2.1/src/nemos/typing.py +59 -0
- nemos-0.2.1/src/nemos/utils.py +593 -0
- nemos-0.2.1/src/nemos/validation.py +320 -0
- nemos-0.2.1/src/nemos.egg-info/PKG-INFO +277 -0
- nemos-0.2.1/src/nemos.egg-info/SOURCES.txt +155 -0
- nemos-0.2.1/src/nemos.egg-info/dependency_links.txt +1 -0
- nemos-0.2.1/src/nemos.egg-info/requires.txt +57 -0
- nemos-0.2.1/src/nemos.egg-info/top_level.txt +1 -0
- nemos-0.2.1/tests/conftest.py +756 -0
- nemos-0.2.1/tests/simulate_coupled_neurons_params.json +1 -0
- nemos-0.2.1/tests/test_base_class.py +96 -0
- nemos-0.2.1/tests/test_basis.py +5229 -0
- nemos-0.2.1/tests/test_convergence.py +193 -0
- nemos-0.2.1/tests/test_convolution.py +412 -0
- nemos-0.2.1/tests/test_glm.py +4315 -0
- nemos-0.2.1/tests/test_glm_initialization.py +76 -0
- nemos-0.2.1/tests/test_identifiability_constraints.py +224 -0
- nemos-0.2.1/tests/test_myst_nb_glue_utils.py +88 -0
- nemos-0.2.1/tests/test_observation_models.py +607 -0
- nemos-0.2.1/tests/test_pipeline.py +202 -0
- nemos-0.2.1/tests/test_proximal_operator.py +140 -0
- nemos-0.2.1/tests/test_pytrees.py +142 -0
- nemos-0.2.1/tests/test_regularizer.py +1496 -0
- nemos-0.2.1/tests/test_simulation.py +614 -0
- nemos-0.2.1/tests/test_solvers.py +607 -0
- nemos-0.2.1/tests/test_svrg_defaults.py +324 -0
- nemos-0.2.1/tests/test_transformer_basis.py +993 -0
- nemos-0.2.1/tests/test_tree_utils.py +131 -0
- nemos-0.2.1/tests/test_type_casting.py +431 -0
- nemos-0.2.1/tests/test_utils.py +632 -0
- nemos-0.2.1/tests/test_validation.py +198 -0
- nemos-0.2.1/tox.ini +75 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @BalzaniEdoardo
|
|
@@ -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,95 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
schedule:
|
|
6
|
+
- cron: 0 0 1 * 0 # monthly
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
- development
|
|
11
|
+
types:
|
|
12
|
+
- opened
|
|
13
|
+
- reopened
|
|
14
|
+
- synchronize
|
|
15
|
+
- ready_for_review
|
|
16
|
+
push:
|
|
17
|
+
branches:
|
|
18
|
+
- main
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
tox_tests:
|
|
22
|
+
if: ${{ !github.event.pull_request.draft }}
|
|
23
|
+
strategy:
|
|
24
|
+
matrix:
|
|
25
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
26
|
+
python-version: ['3.10', '3.11', '3.12']
|
|
27
|
+
runs-on: ${{ matrix.os }}
|
|
28
|
+
steps:
|
|
29
|
+
- name: Checkout code
|
|
30
|
+
uses: actions/checkout@v4
|
|
31
|
+
|
|
32
|
+
- name: Set up Python
|
|
33
|
+
uses: actions/setup-python@v4 # Use v4 for compatibility with pyproject.toml
|
|
34
|
+
with:
|
|
35
|
+
python-version: ${{ matrix.python-version }}
|
|
36
|
+
cache: pip
|
|
37
|
+
|
|
38
|
+
- name: Install dependencies
|
|
39
|
+
run: |
|
|
40
|
+
python -m pip install --upgrade pip
|
|
41
|
+
pip install tox
|
|
42
|
+
|
|
43
|
+
- name: Run tox
|
|
44
|
+
run: tox -e py
|
|
45
|
+
|
|
46
|
+
- name: Upload coverage reports to Codecov
|
|
47
|
+
uses: codecov/codecov-action@v4.0.1
|
|
48
|
+
env:
|
|
49
|
+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
50
|
+
|
|
51
|
+
tox_check:
|
|
52
|
+
if: ${{ !github.event.pull_request.draft }}
|
|
53
|
+
runs-on: ubuntu-latest
|
|
54
|
+
steps:
|
|
55
|
+
- name: Checkout code
|
|
56
|
+
uses: actions/checkout@v4
|
|
57
|
+
|
|
58
|
+
- name: Set up Python
|
|
59
|
+
uses: actions/setup-python@v4 # Use v4 for compatibility with pyproject.toml
|
|
60
|
+
with:
|
|
61
|
+
python-version: 3.12
|
|
62
|
+
cache: pip
|
|
63
|
+
|
|
64
|
+
- name: Install dependencies
|
|
65
|
+
run: |
|
|
66
|
+
python -m pip install --upgrade pip
|
|
67
|
+
pip install tox
|
|
68
|
+
|
|
69
|
+
- name: Run tox
|
|
70
|
+
run: tox -e check
|
|
71
|
+
|
|
72
|
+
prevent_docs_absolute_links:
|
|
73
|
+
runs-on: ubuntu-latest
|
|
74
|
+
steps:
|
|
75
|
+
- name: Checkout code
|
|
76
|
+
uses: actions/checkout@v4
|
|
77
|
+
|
|
78
|
+
- name: Make .sh executable
|
|
79
|
+
run: chmod +x bash_scripts/prevent_absolute_links_to_docs.sh
|
|
80
|
+
|
|
81
|
+
- name: Check links
|
|
82
|
+
run: ./bash_scripts/prevent_absolute_links_to_docs.sh
|
|
83
|
+
|
|
84
|
+
check:
|
|
85
|
+
if: ${{ !github.event.pull_request.draft }}
|
|
86
|
+
needs:
|
|
87
|
+
- tox_tests
|
|
88
|
+
- prevent_docs_absolute_links
|
|
89
|
+
- tox_check
|
|
90
|
+
runs-on: ubuntu-latest
|
|
91
|
+
steps:
|
|
92
|
+
- name: Decide whether all tests and notebooks succeeded
|
|
93
|
+
uses: re-actors/alls-green@v1.2.2
|
|
94
|
+
with:
|
|
95
|
+
jobs: ${{ toJSON(needs) }}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Workflow to connect to a runner
|
|
2
|
+
name: connect
|
|
3
|
+
|
|
4
|
+
# Trigger the workflow manually
|
|
5
|
+
on:
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
name: build # Name of the job
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
14
|
+
python-version: ['3.12']
|
|
15
|
+
runs-on: ${{ matrix.os }} # Operating system for the job
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout # Step to checkout the repository
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Set up Python # Step to set up Python
|
|
21
|
+
uses: actions/setup-python@v4 # Use v4 for compatibility with pyproject.toml
|
|
22
|
+
with:
|
|
23
|
+
python-version: ${{ matrix.python-version }} # Specify the Python version
|
|
24
|
+
cache: pip # Cache the pip packages
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies # Step to install dependencies
|
|
27
|
+
run: |
|
|
28
|
+
python -m pip install --upgrade pip # Upgrade pip
|
|
29
|
+
python -m pip install . # Install the project
|
|
30
|
+
|
|
31
|
+
- name: Setup tmate session (copy paste ssh command to connect to runner) # Step to set up tmate session
|
|
32
|
+
uses: mxschmitt/action-tmate@v3 # Use the action-tmate v3 action
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: Build and upload to PyPI for pure python
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types: [published]
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
build:
|
|
8
|
+
name: Build and test package
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v3
|
|
12
|
+
# this is necessary for setuptools_scm to work properly with github
|
|
13
|
+
# actions, see https://github.com/pypa/setuptools_scm/issues/480 and
|
|
14
|
+
# https://stackoverflow.com/a/68959339
|
|
15
|
+
with:
|
|
16
|
+
fetch-depth: 0
|
|
17
|
+
- name: Set up Python
|
|
18
|
+
uses: actions/setup-python@v4
|
|
19
|
+
with:
|
|
20
|
+
python-version: '3.x'
|
|
21
|
+
- name: Build package
|
|
22
|
+
run: |
|
|
23
|
+
pip install build
|
|
24
|
+
python -m build --outdir dist/ --sdist --wheel
|
|
25
|
+
- name: Check there's only one sdist and one whl file created
|
|
26
|
+
shell: bash
|
|
27
|
+
# because the following two tests will be weird otherwise. see
|
|
28
|
+
# https://askubuntu.com/a/454568 for why this is the right way to handle
|
|
29
|
+
# it. using [[ BOOLEAN ]] || EXPR is a compact way of writing IF NOT
|
|
30
|
+
# BOOLEAN THEN EXPR in bash
|
|
31
|
+
run: |
|
|
32
|
+
[[ $(find dist/ -type f -name "*whl" -printf x | wc -c) == 1 ]] || exit 1
|
|
33
|
+
[[ $(find dist/ -type f -name "*tar.gz" -printf x | wc -c) == 1 ]] || exit 1
|
|
34
|
+
- name: Check setuptools_scm version against git tag
|
|
35
|
+
shell: bash
|
|
36
|
+
run: |
|
|
37
|
+
# we use the error code of this comparison: =~ is bash's regex
|
|
38
|
+
# operator, so it checks whether the right side is contained in the
|
|
39
|
+
# left side. In particular, we succeed if the path of the source code
|
|
40
|
+
# ends in the most recent git tag, fail if it does not.
|
|
41
|
+
[[ "$(ls dist/*tar.gz)" =~ "-$(git describe --tags).tar.gz" ]]
|
|
42
|
+
- name: Check we can install from wheel
|
|
43
|
+
# note that this is how this works in bash (different shells might be
|
|
44
|
+
# slightly different). we've checked there's only one .whl file in an
|
|
45
|
+
# earlier step, so the bit in `$()` will expand to that single file,
|
|
46
|
+
# then we pass [dev] to get specify the optional dev dependencies, and
|
|
47
|
+
# we wrap the whole thing in quotes so bash doesn't try to interpret the
|
|
48
|
+
# square brackets but passes them directly to pip install
|
|
49
|
+
shell: bash
|
|
50
|
+
run: |
|
|
51
|
+
pip install "$(ls dist/*whl)[dev]"
|
|
52
|
+
- name: Run some tests
|
|
53
|
+
# modify the following as necessary to e.g., run notebooks
|
|
54
|
+
run: |
|
|
55
|
+
pytest
|
|
56
|
+
- uses: actions/upload-artifact@v3
|
|
57
|
+
with:
|
|
58
|
+
path: dist/*
|
|
59
|
+
|
|
60
|
+
publish:
|
|
61
|
+
name: Upload release to PyPI
|
|
62
|
+
needs: [build]
|
|
63
|
+
environment: pypi
|
|
64
|
+
runs-on: ubuntu-latest
|
|
65
|
+
permissions:
|
|
66
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
67
|
+
steps:
|
|
68
|
+
- uses: actions/download-artifact@v3
|
|
69
|
+
with:
|
|
70
|
+
name: artifact
|
|
71
|
+
path: dist
|
|
72
|
+
- name: Publish package to pypi
|
|
73
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
nemos-0.2.1/.gitignore
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
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
|
+
# sphinx build documentation
|
|
121
|
+
/docs/_build
|
|
122
|
+
|
|
123
|
+
# mypy
|
|
124
|
+
.mypy_cache/
|
|
125
|
+
.dmypy.json
|
|
126
|
+
dmypy.json
|
|
127
|
+
|
|
128
|
+
# Pyre type checker
|
|
129
|
+
.pyre/
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
# PyCharm project specs
|
|
133
|
+
.idea/
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
.DS_Store
|
|
137
|
+
|
|
138
|
+
# mkdocs generated folder
|
|
139
|
+
docs/generated/
|
|
140
|
+
|
|
141
|
+
# vscode
|
|
142
|
+
.vscode/
|
|
143
|
+
|
|
144
|
+
# nwb cahce
|
|
145
|
+
nwb-cache/
|
|
146
|
+
|
|
147
|
+
# scripting folder
|
|
148
|
+
_scripts/
|
|
149
|
+
|
|
150
|
+
# env variable for nwbs
|
|
151
|
+
docs/data/
|
|
152
|
+
|
|
153
|
+
# rst generated files
|
|
154
|
+
docs/stubs
|
|
155
|
+
|
|
156
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# .readthedocs.yaml
|
|
2
|
+
# Read the Docs configuration file
|
|
3
|
+
|
|
4
|
+
# Required
|
|
5
|
+
version: 2
|
|
6
|
+
|
|
7
|
+
# Set the version of Python and other tools you might need
|
|
8
|
+
build:
|
|
9
|
+
os: ubuntu-22.04
|
|
10
|
+
tools:
|
|
11
|
+
python: "3.11"
|
|
12
|
+
ruby: "3.3"
|
|
13
|
+
jobs:
|
|
14
|
+
pre_build:
|
|
15
|
+
- gem install html-proofer -v ">= 5.0.9" # Ensure version >= 5.0.9
|
|
16
|
+
post_build:
|
|
17
|
+
# Check everything except 403s and a jneurosci, which returns 404 but the link works when clicking.
|
|
18
|
+
- htmlproofer $READTHEDOCS_OUTPUT/html --checks Links,Scripts,Images --ignore-urls "https://fonts.gstatic.com,https://celltypes.brain-map.org/experiment/electrophysiology/478498617,https://www.jneurosci.org/content/25/47/11003,https://www.nature.com/articles/s41467-017-01908-3,https://doi.org/10.1038/s41467-017-01908-3" --assume-extension --check-external-hash --ignore-status-codes 403,302,0 --ignore-files "/.+\/_static\/.+/","/.+\/stubs\/.+/","/.+\/tutorials/plot_02_head_direction.+/"
|
|
19
|
+
# The auto-generated animation doesn't have a alt or src/srcset; I am able to ignore missing alt, but I cannot work around a missing src/srcset
|
|
20
|
+
# therefore for this file I am not checking the figures.
|
|
21
|
+
- htmlproofer $READTHEDOCS_OUTPUT/html/tutorials/plot_02_head_direction.html --checks Links,Scripts --ignore-urls "https://www.jneurosci.org/content/25/47/11003"
|
|
22
|
+
# Build documentation in the docs/ directory with Sphinx
|
|
23
|
+
sphinx:
|
|
24
|
+
configuration: docs/conf.py
|
|
25
|
+
|
|
26
|
+
# Optionally declare the Python requirements required to build your docs
|
|
27
|
+
python:
|
|
28
|
+
install:
|
|
29
|
+
- method: pip
|
|
30
|
+
path: .
|
|
31
|
+
extra_requirements:
|
|
32
|
+
- docs
|
|
33
|
+
|
|
34
|
+
formats:
|
|
35
|
+
- pdf
|
|
36
|
+
- htmlzip
|
|
Binary file
|
nemos-0.2.1/CITATION.cff
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If you use this software, please cite it using the preferred-citation metadata."
|
|
3
|
+
title: ""NEural MOdelS, a statistical modeling framework for neuroscience."
|
|
4
|
+
authors:
|
|
5
|
+
- family-names: Balzani
|
|
6
|
+
given-names: Edoardo
|
|
7
|
+
orcid: "https://orcid.org/0000-0002-3702-5856"
|
|
8
|
+
- family-names: Broderick
|
|
9
|
+
given-names: William
|
|
10
|
+
orcid: "https://orcid.org/0000-0002-8999-9003"
|
|
11
|
+
- family-names: Viejo
|
|
12
|
+
given-names: Guillaume
|
|
13
|
+
orcid: "https://orcid.org/0000-0002-2450-7397"
|
|
14
|
+
- family-names: Williams
|
|
15
|
+
given-names: Alex
|
|
16
|
+
orcid: "https://orcid.org/0000-0001-5853-103X"
|
|
17
|
+
repository-code: "https://github.com/flatironinstitute/nemos"
|
|
18
|
+
url: "https://nemos.readthedocs.io/"
|
|
19
|
+
license: MIT
|
|
20
|
+
keywords:
|
|
21
|
+
- neuroscience
|
|
22
|
+
- Poisson GLM
|
|
23
|
+
- spike counts modeling
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
## Our Mission
|
|
2
|
+
We aspire to build a community-driven, open library dedicated to neuroscientific analysis. As such, we foster friendly discussions encompassing both the contents of the package and the underlying theory.
|
|
3
|
+
|
|
4
|
+
## Core Values
|
|
5
|
+
- **Inclusivity**: Every contribution is valuable. We recognize and appreciate the diversity of our community members and their contributions.
|
|
6
|
+
- **Equality**: We are committed to treating everyone with fairness and impartiality. Discrimination or favoritism has no place in our community.
|
|
7
|
+
- **Professionalism**: We expect our community members to maintain a high standard of conduct. Inappropriate or disrespectful language will not be tolerated.
|
|
8
|
+
|
|
9
|
+
## Contribution
|
|
10
|
+
We welcome code submissions, improvements to documentation, tutorials, active participation in discussions, and revisions to pull requests.
|
|
11
|
+
|
|
12
|
+
## Our Standards
|
|
13
|
+
|
|
14
|
+
Examples of behavior that contributes to a positive environment for our
|
|
15
|
+
community include:
|
|
16
|
+
|
|
17
|
+
* Demonstrating empathy and kindness toward other people
|
|
18
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
19
|
+
* Giving and gracefully accepting constructive feedback
|
|
20
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
21
|
+
and learning from the experience
|
|
22
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
|
23
|
+
community
|
|
24
|
+
|
|
25
|
+
Examples of unacceptable behavior include:
|
|
26
|
+
|
|
27
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
28
|
+
any kind
|
|
29
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
30
|
+
* Public or private harassment
|
|
31
|
+
* Publishing others' private information, such as a physical or email address,
|
|
32
|
+
without their explicit permission
|
|
33
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
34
|
+
professional setting
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## Enforcement Responsibilities
|
|
38
|
+
|
|
39
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
40
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
41
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
42
|
+
or harmful.
|
|
43
|
+
|
|
44
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
45
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
46
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
47
|
+
decisions when appropriate.
|
|
48
|
+
|
|
49
|
+
## Enforcement
|
|
50
|
+
|
|
51
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
52
|
+
reported to the community leaders responsible for enforcement at
|
|
53
|
+
[edoardo.balzani87@gmail.com](mailto:edoardo.balzani87@gmail.com).
|
|
54
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
55
|
+
|
|
56
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
57
|
+
reporter of any incident.
|
|
58
|
+
|
|
59
|
+
## Enforcement Guidelines
|
|
60
|
+
|
|
61
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
62
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
63
|
+
|
|
64
|
+
### 1. Correction
|
|
65
|
+
|
|
66
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
67
|
+
unprofessional or unwelcome in the community.
|
|
68
|
+
|
|
69
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
70
|
+
clarity around the nature of the violation and an explanation of why the
|
|
71
|
+
behavior was inappropriate. A public apology may be requested.
|
|
72
|
+
|
|
73
|
+
### 2. Warning
|
|
74
|
+
|
|
75
|
+
**Community Impact**: A violation through a single incident or series of
|
|
76
|
+
actions.
|
|
77
|
+
|
|
78
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
79
|
+
interaction with the people involved, including unsolicited interaction with
|
|
80
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
81
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
82
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
|
83
|
+
ban.
|
|
84
|
+
|
|
85
|
+
### 3. Temporary Ban
|
|
86
|
+
|
|
87
|
+
**Community Impact**: A serious violation of community standards, including
|
|
88
|
+
sustained inappropriate behavior.
|
|
89
|
+
|
|
90
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
91
|
+
communication with the community for a specified period of time. No public or
|
|
92
|
+
private interaction with the people involved, including unsolicited interaction
|
|
93
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
94
|
+
Violating these terms may lead to a permanent ban.
|
|
95
|
+
|
|
96
|
+
### 4. Permanent Ban
|
|
97
|
+
|
|
98
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
99
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
100
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
101
|
+
|
|
102
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
103
|
+
community.
|
|
104
|
+
|
|
105
|
+
## Attribution
|
|
106
|
+
|
|
107
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
108
|
+
version 2.1, available at
|
|
109
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
110
|
+
|
|
111
|
+
Community Impact Guidelines were inspired by
|
|
112
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
113
|
+
|
|
114
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
115
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
|
116
|
+
[https://www.contributor-covenant.org/translations][translations].
|
|
117
|
+
|
|
118
|
+
[homepage]: https://www.contributor-covenant.org
|
|
119
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
120
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
121
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
|
122
|
+
[translations]: https://www.contributor-covenant.org/translations
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
We follow the principles of openness, respect, and consideration of others of the Python Software Foundation: https://www.python.org/psf/codeofconduct/
|