nemos 0.1.0__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 (42) hide show
  1. nemos-0.1.0/.github/CODEOWNERS +1 -0
  2. nemos-0.1.0/.github/workflows/ci.yml +46 -0
  3. nemos-0.1.0/.github/workflows/connect.yml +32 -0
  4. nemos-0.1.0/.github/workflows/deploy-pure-python.yml +73 -0
  5. nemos-0.1.0/.gitignore +145 -0
  6. nemos-0.1.0/.readthedocs.yaml +27 -0
  7. nemos-0.1.0/CCN-letterFoot.png +0 -0
  8. nemos-0.1.0/CCN-logo-wText.png +0 -0
  9. nemos-0.1.0/CODE_OF_CONDUCT.md +125 -0
  10. nemos-0.1.0/CONTRIBUTING.md +9 -0
  11. nemos-0.1.0/LICENSE +21 -0
  12. nemos-0.1.0/PKG-INFO +88 -0
  13. nemos-0.1.0/README.md +27 -0
  14. nemos-0.1.0/docs/developers_notes/README.md +37 -0
  15. nemos-0.1.0/docs/developers_notes/basis_module.md +72 -0
  16. nemos-0.1.0/docs/examples/README.md +3 -0
  17. nemos-0.1.0/docs/examples/plot_1D_basis_function.py +82 -0
  18. nemos-0.1.0/docs/examples/plot_ND_basis_function.py +300 -0
  19. nemos-0.1.0/docs/examples/plot_example_convolution.py +115 -0
  20. nemos-0.1.0/docs/gen_ref_pages.py +50 -0
  21. nemos-0.1.0/docs/index.md +7 -0
  22. nemos-0.1.0/docs/javascripts/katex.js +10 -0
  23. nemos-0.1.0/mkdocs.yml +43 -0
  24. nemos-0.1.0/pyproject.toml +106 -0
  25. nemos-0.1.0/setup.cfg +4 -0
  26. nemos-0.1.0/src/nemos/__init__.py +3 -0
  27. nemos-0.1.0/src/nemos/basis.py +1130 -0
  28. nemos-0.1.0/src/nemos/glm.py +431 -0
  29. nemos-0.1.0/src/nemos/sample_points.py +60 -0
  30. nemos-0.1.0/src/nemos/utils.py +385 -0
  31. nemos-0.1.0/src/nemos.egg-info/PKG-INFO +88 -0
  32. nemos-0.1.0/src/nemos.egg-info/SOURCES.txt +40 -0
  33. nemos-0.1.0/src/nemos.egg-info/dependency_links.txt +1 -0
  34. nemos-0.1.0/src/nemos.egg-info/requires.txt +25 -0
  35. nemos-0.1.0/src/nemos.egg-info/top_level.txt +1 -0
  36. nemos-0.1.0/tests/test_basis.py +1696 -0
  37. nemos-0.1.0/tests/test_convolution_1d.py +249 -0
  38. nemos-0.1.0/tests/test_glm_runs.py +65 -0
  39. nemos-0.1.0/tests/test_glm_synthetic.py +96 -0
  40. nemos-0.1.0/tests/test_glm_synthetic_single_neuron.py +55 -0
  41. nemos-0.1.0/tests/utils_testing.py +210 -0
  42. nemos-0.1.0/tox.ini +50 -0
@@ -0,0 +1 @@
1
+ * @BalzaniEdoardo
@@ -0,0 +1,46 @@
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
+
12
+ jobs:
13
+ tox:
14
+ strategy:
15
+ matrix:
16
+ os: [ubuntu-latest] #[ubuntu-latest, macos-latest, windows-latest]
17
+ python-version: ['3.10'] #['3.8', '3.9', '3.10']
18
+ runs-on: ${{ matrix.os }}
19
+ steps:
20
+ - name: Checkout code
21
+ uses: actions/checkout@v3
22
+
23
+ - name: Set up Python
24
+ uses: actions/setup-python@v4 # Use v4 for compatibility with pyproject.toml
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+ cache: pip
28
+
29
+ - name: Install dependencies
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ python -m pip install .
33
+ pip install tox
34
+
35
+ - name: Run tox
36
+ run: tox -e py
37
+
38
+ check:
39
+ if: always()
40
+ needs: tox
41
+ runs-on: ubuntu-latest
42
+ steps:
43
+ - name: Decide whether all tests and notebooks succeeded
44
+ uses: re-actors/alls-green@v1.2.2
45
+ with:
46
+ 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] #[ubuntu-latest, macos-latest, windows-latest]
14
+ python-version: ['3.8', '3.9', '3.10']
15
+ runs-on: ${{ matrix.os }} # Operating system for the job
16
+ steps:
17
+ - name: Checkout # Step to checkout the repository
18
+ uses: actions/checkout@v3
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.1.0/.gitignore ADDED
@@ -0,0 +1,145 @@
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
+
132
+ # PyCharm project specs
133
+ .idea/
134
+
135
+
136
+ # IntelliJ's project specific settings
137
+ .idea/
138
+
139
+ .DS_Store
140
+
141
+ # mkdocs generated folder
142
+ docs/generated/
143
+
144
+ # vscode
145
+ .vscode/
@@ -0,0 +1,27 @@
1
+ # .readthedocs.yaml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version: 2
7
+
8
+ # Set the version of Python and other tools you might need
9
+ build:
10
+ os: ubuntu-22.04
11
+ tools:
12
+ python: "3.10"
13
+
14
+ mkdocs:
15
+ configuration: mkdocs.yml
16
+
17
+ # Optionally declare the Python requirements required to build your docs
18
+ python:
19
+ install:
20
+ - method: pip
21
+ path: .
22
+ extra_requirements:
23
+ - docs
24
+
25
+ formats:
26
+ - pdf
27
+ - htmlzip
Binary file
Binary file
@@ -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/
@@ -0,0 +1,9 @@
1
+ # Contributing
2
+
3
+ The `nemos` package is designed to provide a robust set of statistical analysis tools for neuroscience research. While the repository is managed by a core team of data scientists at the Center for Computational Neuroscience of the Flatiron Institute, we warmly welcome contributions from external collaborators.
4
+
5
+ ## General Guidelines
6
+
7
+ Developers are encouraged to contribute to various areas of development. This could include the creation of concrete classes, such as those for new basis function types, or the addition of further checks at evaluation. Enhancements to documentation and the overall readability of the code are also greatly appreciated.
8
+
9
+ Feel free to work on any section of code that you believe you can improve. More importantly, remember to thoroughly test all your classes and functions, and to provide clear, detailed comments within your code. This not only aids others in using your library, but also facilitates future maintenance and further development.
nemos-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 William F. Broderick
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.
nemos-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,88 @@
1
+ Metadata-Version: 2.1
2
+ Name: nemos
3
+ Version: 0.1.0
4
+ Summary: Toolbox for basic Generalized Linear Models (GLMs) for neural data analysis
5
+ Author-email: Edoardo Balzani <ebalzani@flatironinstitute.org>, William Broderick <wbroderick@flatironinstitute.org>, Guillaume Vejo <gviejo@flatironinstitute.org>, Alex Williams <alex.h.williams@nyu.edu>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2023 William F. Broderick
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Keywords: neuroscience,Poisson-GLM
29
+ Classifier: Intended Audience :: Science/Research
30
+ Classifier: Natural Language :: English
31
+ Classifier: Programming Language :: Python :: 3
32
+ Classifier: Programming Language :: Python :: 3.8
33
+ Classifier: Programming Language :: Python :: 3.9
34
+ Classifier: Programming Language :: Python :: 3.10
35
+ Requires-Python: >=3.8
36
+ Description-Content-Type: text/markdown
37
+ License-File: LICENSE
38
+ Requires-Dist: jax>=0.4
39
+ Requires-Dist: jaxopt>=0.6
40
+ Requires-Dist: matplotlib>=3.7
41
+ Requires-Dist: numpy>1.20
42
+ Requires-Dist: scikit-learn>=1.2
43
+ Requires-Dist: scipy>=1.10
44
+ Requires-Dist: typing_extensions>=4.6
45
+ Provides-Extra: dev
46
+ Requires-Dist: black; extra == "dev"
47
+ Requires-Dist: isort; extra == "dev"
48
+ Requires-Dist: pip-tools; extra == "dev"
49
+ Requires-Dist: pytest; extra == "dev"
50
+ Requires-Dist: flake8; extra == "dev"
51
+ Requires-Dist: coverage; extra == "dev"
52
+ Requires-Dist: pytest-cov; extra == "dev"
53
+ Provides-Extra: docs
54
+ Requires-Dist: mkdocs; extra == "docs"
55
+ Requires-Dist: mkdocstrings[python]; extra == "docs"
56
+ Requires-Dist: mkdocs-section-index; extra == "docs"
57
+ Requires-Dist: mkdocs-gen-files; extra == "docs"
58
+ Requires-Dist: mkdocs-literate-nav; extra == "docs"
59
+ Requires-Dist: mkdocs-gallery; extra == "docs"
60
+ Requires-Dist: mkdocs-material; extra == "docs"
61
+
62
+ ![LOGO](CCN-logo-wText.png)
63
+
64
+ # nemos
65
+ NEural MOdelS, a statistical modeling framework for neuroscience.
66
+
67
+ ## Disclaimer
68
+ This is an alpha version, the code is in active development and the API is subject to change.
69
+
70
+ ## Setup
71
+
72
+ To install, clone this repo and install using `pip`:
73
+
74
+ ``` sh
75
+ git clone git@github.com:flatironinstitute/nemos.git
76
+ cd nemos/
77
+ pip install -e .
78
+ ```
79
+
80
+ If you have a GPU, you may need to install jax separately to get the proper
81
+ build. The following has worked for me on a Flatiron Linux workstation: `conda
82
+ install jax cuda-nvcc -c conda-forge -c nvidia`. Note this should be done
83
+ without `jax` and `jaxlib` already installed, so either run this before the
84
+ earlier `pip install` command or uninstall them first (`pip uninstall jax
85
+ jaxlib`). See [jax docs](https://github.com/google/jax#conda-installation) for
86
+ details (the `pip` instructions did not work for me).
87
+
88
+ ![FOOT](CCN-letterFoot.png)
nemos-0.1.0/README.md ADDED
@@ -0,0 +1,27 @@
1
+ ![LOGO](CCN-logo-wText.png)
2
+
3
+ # nemos
4
+ NEural MOdelS, a statistical modeling framework for neuroscience.
5
+
6
+ ## Disclaimer
7
+ This is an alpha version, the code is in active development and the API is subject to change.
8
+
9
+ ## Setup
10
+
11
+ To install, clone this repo and install using `pip`:
12
+
13
+ ``` sh
14
+ git clone git@github.com:flatironinstitute/nemos.git
15
+ cd nemos/
16
+ pip install -e .
17
+ ```
18
+
19
+ If you have a GPU, you may need to install jax separately to get the proper
20
+ build. The following has worked for me on a Flatiron Linux workstation: `conda
21
+ install jax cuda-nvcc -c conda-forge -c nvidia`. Note this should be done
22
+ without `jax` and `jaxlib` already installed, so either run this before the
23
+ earlier `pip install` command or uninstall them first (`pip uninstall jax
24
+ jaxlib`). See [jax docs](https://github.com/google/jax#conda-installation) for
25
+ details (the `pip` instructions did not work for me).
26
+
27
+ ![FOOT](CCN-letterFoot.png)
@@ -0,0 +1,37 @@
1
+ # Introduction
2
+
3
+ Welcome to the Developer Notes of the `nemos` project. These notes aim to provide detailed technical information about the various modules, classes, and functions that make up this library, as well as guidelines on how to write code that integrates nicely with our package. They are intended to help current and future developers understand the design decisions, structure, and functioning of the library, and to provide guidance on how to modify, extend, and maintain the codebase.
4
+
5
+ ## Intended Audience
6
+
7
+ These notes are primarily intended for the following groups:
8
+
9
+ - **Current Developers**: The Developer Notes can serve as a comprehensive guide to understanding the library, making it easier to debug, modify and maintain the code.
10
+
11
+ - **Future Developers**: These notes can help onboard new developers to the project, providing them with detailed explanations of the codebase and its underlying architecture.
12
+
13
+ - **Contributors**: If you wish to contribute to the `nemos` project, the Developer Notes can provide a solid foundation of understanding, helping to ensure that your contributions align with the existing structure and design principles of the library.
14
+
15
+ - **Advanced Users**: While the primary focus of these notes is on development, they might also be of interest to advanced users who want a deeper understanding of the library's functionality.
16
+
17
+ Please note that these notes assume a certain level of programming knowledge. Familiarity with Python, object-oriented programming, and the NumPy, Scipy and Jax libraries would be beneficial when reading these notes.
18
+
19
+ ## Navigating the Developer Notes
20
+
21
+ The Developer Notes are divided into sections, each focusing on a different module or class within the `nemos` library. Each section provides an overview of the class or module, explains its role and functionality within the library, and offers a comprehensive guide to its classes and functions. Typically, we will provide instructions on how to extend the existing modules. We generally advocate for the use of inheritance and encourage consistency with the existing codebase. In creating developer instructions, we follow the conventions outlined below:
22
+
23
+ - **Must**: This denotes a requirement. Any method or function that fails to meet the requirement will not be merged.
24
+ - **Should**: This denotes a suggestion. Reasons should be provided if a suggestion is not followed.
25
+ - **May**: This denotes an option that, if implemented, could enhance the user/developer experience but can be overlooked if deemed unnecessary.
26
+
27
+ ## Interact with us
28
+
29
+ If you're considering contributing to the library, first of all, welcome aboard! As a first step, we recommend that you read the [`CONTRIBUTING.md`](https://github.com/flatironinstitute/nemos/blob/main/CONTRIBUTING.md) guidelines. These will help you understand how to interact with other contributors and how to submit your changes.
30
+
31
+ If you have any questions or need further clarification on any of the topics covered in these notes, please don't hesitate to reach out to us. You can do so via the [discussion](https://github.com/flatironinstitute/nemos/discussions/landing) forum on GitHub.
32
+
33
+ We're looking forward to your contributions and to answering any queries you might have!
34
+
35
+
36
+
37
+