Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for NeuroML v2.3.1 release #418

Merged
merged 673 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
673 commits
Select commit Hold shift + click to select a range
fef42e9
removed the error
AdityaPandeyCN May 20, 2024
998a56c
updated the test_plot_spikes_from_files
AdityaPandeyCN May 21, 2024
b968034
made plot_spikes_from_data_files more efficient
AdityaPandeyCN May 21, 2024
94ef33c
Merge branch 'development' into feat/issue-303-development
sanjayankur31 May 21, 2024
4b11acd
Merge pull request #1 from NeuroML/feat/issue-303-development
AdityaPandeyCN May 21, 2024
b07f631
Small tweaks
lej0hn May 21, 2024
a506a9d
Merge branch 'development' of https://github.com/NeuroML/pyNeuroML in…
AdityaPandeyCN May 21, 2024
d39b0f1
Merge branch 'development' into feat/issue-303
AdityaPandeyCN May 21, 2024
771d66c
Better handling of nested if statements in xpp parser
pgleeson May 21, 2024
cea0f37
Merge pull request #368 from NeuroML/experimental
pgleeson May 21, 2024
5dda444
chore: to 1.2.14
sanjayankur31 May 22, 2024
ba3cdff
feat: make progressbar a default dep
sanjayankur31 May 22, 2024
b927130
chore: to 1.2.15
sanjayankur31 May 22, 2024
16484e1
Merge pull request #367 from lej0hn/translation
sanjayankur31 May 22, 2024
f50032c
chore: reformat
sanjayankur31 May 22, 2024
c4a2379
chore: ruff_format
sanjayankur31 May 22, 2024
2cbd27b
Merge branch 'development' into feat/more-annotations
sanjayankur31 May 22, 2024
fe2f8d1
Merge pull request #354 from NeuroML/feat/more-annotations
sanjayankur31 May 22, 2024
ef3077d
chore: improve contributing documentation
sanjayankur31 May 22, 2024
538a0d7
chore(contributing): correct indentation
sanjayankur31 May 22, 2024
66d7d30
Merge pull request #371 from NeuroML/feat/improve-contributing
sanjayankur31 May 22, 2024
a9893ee
small changes
AdityaPandeyCN May 22, 2024
134c205
docstrings for title and offsets
AdityaPandeyCN May 23, 2024
64f971c
fixed offset error
AdityaPandeyCN May 26, 2024
65e5b58
fixed setup error
AdityaPandeyCN May 26, 2024
f428250
Merge branch 'development' of https://github.com/NeuroML/pyNeuroML in…
AdityaPandeyCN May 26, 2024
eb703cc
Merge branch 'development' into feat/issue-303
AdityaPandeyCN May 26, 2024
eae651e
merge changes
AdityaPandeyCN May 26, 2024
7fecacb
Merge remote-tracking branch 'origin/feat/issue-303' into feat/issue-303
AdityaPandeyCN May 26, 2024
aefb973
merge changes
AdityaPandeyCN May 26, 2024
dbee252
chore: add flake8 ignores
sanjayankur31 May 29, 2024
d3cae41
feat(analysis): add util method to get states from IonChannelKS
sanjayankur31 May 29, 2024
46ccec7
Merge pull request #373 from NeuroML/feat/get-ks-channel-states
sanjayankur31 May 29, 2024
78895d9
docs(lems): correct arg docstring
sanjayankur31 May 29, 2024
648d59e
feat(plot): check that args are valid
sanjayankur31 May 29, 2024
95450b2
Merge pull request #374 from NeuroML/feat/plotting-checks
sanjayankur31 May 30, 2024
a114422
Merge branch 'development' into feat/issue-303
sanjayankur31 May 31, 2024
1622a42
Add option to fix_external_morphs_biophys on cell when reading neuroml
pgleeson May 31, 2024
6e08597
feat(plot-spikes): improve arguments
sanjayankur31 May 31, 2024
03e3b82
chore: remove unused imports
sanjayankur31 May 31, 2024
2c4f406
feat(plot-spikes): fixes to plotting from lems
sanjayankur31 May 31, 2024
46c5da2
Merge branch 'development' of https://github.com/NeuroML/pyNeuroML in…
AdityaPandeyCN Jun 3, 2024
c06a02e
Get rotation angles to eliminate x,y components in PCA axis
lej0hn Jun 3, 2024
abd8e1b
Rotate cell using PCA angles and translate it to origin
lej0hn Jun 3, 2024
17b2e35
Added create_new_vispy_canvas test parameters for pca
lej0hn Jun 3, 2024
b623a1f
minor fixes
lej0hn Jun 3, 2024
c212efb
Merge pull request #377 from NeuroML/feat/issue-303-development
sanjayankur31 Jun 3, 2024
5e7b360
chore(plot-spikes): convert prints to log messages
sanjayankur31 Jun 3, 2024
6cde1e0
Merge branch 'development' into experimental
pgleeson Jun 4, 2024
84d25d2
feat(plot-spikes): disable grid, put legend below
sanjayankur31 Jun 4, 2024
407c9c9
feat(plot): respect rcparams `legend.loc`
sanjayankur31 Jun 4, 2024
39c2dbf
Created new function PCA_transformation
lej0hn Jun 4, 2024
efcfa10
Removed pca axes visualization and unecessary arguments related to that
lej0hn Jun 4, 2024
3383f6a
Add view_center argument and logic in create_new_vispy_canvas
lej0hn Jun 4, 2024
8094ed6
feat(plotting): enable toggling of lines from legend in matplotlib
sanjayankur31 Jun 4, 2024
abe95ac
chore(plot-spikes): correct docstring formatting
sanjayankur31 Jun 4, 2024
cb77a18
fix:Cameras' center was being set and then recalculated
lej0hn Jun 4, 2024
aaaff3d
Merge pull request #382 from NeuroML/feat/make-generate-plot-clicky
sanjayankur31 Jun 4, 2024
847090a
chore: linter fixes
sanjayankur31 Jun 4, 2024
5679ca4
fix: update type descrip for py3.8
sanjayankur31 Jun 4, 2024
31bc91d
Merge branch 'development' of https://github.com/NeuroML/pyNeuroML in…
AdityaPandeyCN Jun 5, 2024
68385fa
added SWCnode class
AdityaPandeyCN Jun 5, 2024
703de88
Include type and parent attribute
AdityaPandeyCN Jun 5, 2024
357ec2c
Merge pull request #383 from NeuroML/feat/ruff-fixes
sanjayankur31 Jun 5, 2024
ba883c3
added SWCgraph class
AdityaPandeyCN Jun 5, 2024
c62cdb5
restructured to SWCtree
AdityaPandeyCN Jun 5, 2024
bb94ef8
Add call to PCA_transformation() and set view_center to origin for si…
lej0hn Jun 5, 2024
c0ebcec
extended SWCTree class and added load_swc
AdityaPandeyCN Jun 5, 2024
5265094
removed unused imports
AdityaPandeyCN Jun 5, 2024
10ff836
ci: move coverage config to pyproject.toml
sanjayankur31 Jun 6, 2024
dd4d213
ci: move ruff linting to separate action
sanjayankur31 Jun 6, 2024
14bd103
ci: limit ruff to certain branches
sanjayankur31 Jun 6, 2024
9d9922a
ci: only use ruff check for PRs
sanjayankur31 Jun 6, 2024
b8f194f
chore: linter fixes
sanjayankur31 Jun 6, 2024
57f609b
chore(test-spike-plotting): disable showing matplotlib ui in tests
sanjayankur31 Jun 6, 2024
d993521
Merge pull request #386 from NeuroML/feat/coverage
sanjayankur31 Jun 6, 2024
bbb1c0d
ci: add coverage to pull requests
sanjayankur31 Jun 6, 2024
8aa0b8e
ci: fix CI config yaml
sanjayankur31 Jun 6, 2024
9650677
ci: limit coverage to py312
sanjayankur31 Jun 6, 2024
ecfca56
test(channel-density-plotter): remove long running test
sanjayankur31 Jun 6, 2024
1395644
test(morph-2d-plots): reduce number of planes to speed up test
sanjayankur31 Jun 6, 2024
95314d8
ci: return to directory after running tests
sanjayankur31 Jun 6, 2024
e42d28d
fix(xppaut): use raw string for regex
sanjayankur31 Jun 6, 2024
f354eab
chore: do not ruff lint examples
sanjayankur31 Jun 6, 2024
87fcdd7
chore: more ruff linter fixes
sanjayankur31 Jun 6, 2024
d8d85f7
chore: more ruff linter fixes
sanjayankur31 Jun 6, 2024
001f8a1
chore: more tweaks to fix coverage calc
sanjayankur31 Jun 7, 2024
8093370
added docstrings
AdityaPandeyCN Jun 7, 2024
c14b7d1
chore(coverage): tweak thresholds
sanjayankur31 Jun 7, 2024
8fc5148
test: use pytest-xdist to parallelise pytest runs
sanjayankur31 Jun 7, 2024
83f49d0
fix(povray-overlay): correct variable name
sanjayankur31 Jun 7, 2024
43bf525
Change turntable camera elevation to look at y axis
lej0hn Jun 7, 2024
d46673c
feat(annotations): add bqbiol.is
sanjayankur31 Jun 7, 2024
e90c02f
Merge pull request #387 from NeuroML/feat/pytest-pr
sanjayankur31 Jun 7, 2024
87ccc69
Merge branch 'development' into feat/annotations-is
sanjayankur31 Jun 7, 2024
f0de36b
Merge pull request #390 from NeuroML/feat/annotations-is
sanjayankur31 Jun 7, 2024
a4693ba
fix(annotation): use `is` instead of `Is`
sanjayankur31 Jun 7, 2024
f389344
replaced with SWCGraph class
AdityaPandeyCN Jun 9, 2024
debf533
added validation check
AdityaPandeyCN Jun 9, 2024
8eb5a9a
added validation check
AdityaPandeyCN Jun 9, 2024
e36a532
added load_swc function
AdityaPandeyCN Jun 9, 2024
ac46824
added unit test file & TestSWCNode class
AdityaPandeyCN Jun 10, 2024
779f19c
removed unused errors
AdityaPandeyCN Jun 10, 2024
8b4bded
removed unused variable
AdityaPandeyCN Jun 10, 2024
e9a6742
added TestSWCGraph class
AdityaPandeyCN Jun 10, 2024
e5dbc88
added __init__.py file
AdityaPandeyCN Jun 10, 2024
b13036e
Changed axis visualization to XYZ --changed pca alignment to y axis -…
lej0hn Jun 10, 2024
62884f9
Minor fix in rotation angles
lej0hn Jun 10, 2024
068cf6a
ci: update comment bit to also work on PRs from forks
sanjayankur31 Jun 10, 2024
6d3acbc
Merge pull request #391 from NeuroML/feat/coverage-comment
sanjayankur31 Jun 10, 2024
34627db
Merge branch 'development' into pca_draft
lej0hn Jun 10, 2024
a3c2674
Added function orbit to orbit camera around y_axis
lej0hn Jun 10, 2024
cecbf9d
Fix: Set y axis as up in cameras
lej0hn Jun 10, 2024
b4d0b69
added test_get_graph function
AdityaPandeyCN Jun 10, 2024
01914db
added test_get_parent
AdityaPandeyCN Jun 10, 2024
7c7307e
Add color to axis
lej0hn Jun 10, 2024
8fa1b05
added more tests
AdityaPandeyCN Jun 11, 2024
4962e14
Merge branch 'development' into experimental
pgleeson Jun 11, 2024
bda0d1f
To v1.3.0; uses jnml jar v0.13.1
pgleeson Jun 11, 2024
fdf5392
Regenerated file
pgleeson Jun 11, 2024
5b6d15a
Ignore generated files
pgleeson Jun 11, 2024
d39e371
Added test for PCA_transformation function
lej0hn Jun 11, 2024
4bc0e6f
Added isPCA argument to enable PCA transformation from plot_interacti…
lej0hn Jun 11, 2024
9dd24f4
Fix validation issues =in tests
pgleeson Jun 11, 2024
520c183
Merge pull request #392 from NeuroML/experimental
pgleeson Jun 11, 2024
4f153b1
Fixed z_angle rotation in PCA_transformation
lej0hn Jun 11, 2024
c7808ee
Documentation fixes
lej0hn Jun 11, 2024
f791fc4
test pre commit
lej0hn Jun 11, 2024
ae681be
Change PCA_transformation to make_cell_upright
lej0hn Jun 11, 2024
5280e05
Deleted unecessary variable
lej0hn Jun 11, 2024
0ced4d1
Added scikit-learn library dep
lej0hn Jun 11, 2024
24c34cb
Minor fix
lej0hn Jun 11, 2024
daf152a
Doc fix: upright argument doc addition
lej0hn Jun 11, 2024
166eb9e
Added axes_pos argument in plot_interactive_3d, plot_3d_cell_morpholo…
lej0hn Jun 12, 2024
9c89227
chore: bump dev to 1.3.1
sanjayankur31 Jun 14, 2024
7154995
Merge branch 'development' into pca_draft
lej0hn Jun 17, 2024
a011cd0
To v1.3.2 and use jnml v0.13.2
pgleeson Jun 18, 2024
af109b5
Update ci.yml
pgleeson Jun 18, 2024
84c1500
ci: tweak pip command
sanjayankur31 Jun 18, 2024
107c94b
Merge pull request #394 from NeuroML/feat/ci-numpy
sanjayankur31 Jun 18, 2024
ab9a8eb
replaced the test file for updated LoadSWC.py func
AdityaPandeyCN Jun 18, 2024
bbac284
updated the LoadSWC.py function
AdityaPandeyCN Jun 18, 2024
67f7319
Merge branch 'development' of https://github.com/NeuroML/pyNeuroML in…
AdityaPandeyCN Jun 18, 2024
d930f76
Merge branch 'development' into feat/SWCLoaderfile
AdityaPandeyCN Jun 18, 2024
046dbda
updated the docstring
AdityaPandeyCN Jun 18, 2024
c98a0f7
updated
AdityaPandeyCN Jun 18, 2024
afa4394
chore: temporarily pin numpy to `<2.0.0`
sanjayankur31 Jun 18, 2024
d2ae17d
ci: remove coverage commenter
sanjayankur31 Jun 18, 2024
25af1e5
deps: limit pyopengl-accelerate to py<3.12
sanjayankur31 Jun 18, 2024
0f84866
fix: `numpy<2.0.0` not `numpy<=2.0.0`
sanjayankur31 Jun 18, 2024
0a82277
Merge pull request #395 from NeuroML/feat/ci-fixes
sanjayankur31 Jun 18, 2024
bf31f28
removed get_descendants
AdityaPandeyCN Jun 18, 2024
6056b2f
removed test_get_descendants
AdityaPandeyCN Jun 18, 2024
1477a0a
Merge pull request #396 from NeuroML/experimental
pgleeson Jun 18, 2024
bdbf2fb
Merge branch 'development' into pca_draft
lej0hn Jun 18, 2024
b118eea
changed the doctrings
AdityaPandeyCN Jun 19, 2024
763ce34
removed unused imports
AdityaPandeyCN Jun 19, 2024
a1f1f76
changes making the function correct
AdityaPandeyCN Jun 20, 2024
374e029
changes making the function correct
AdityaPandeyCN Jun 20, 2024
3f4e9e4
added more test
AdityaPandeyCN Jun 20, 2024
f2225c7
added get_nodes_by_type test
AdityaPandeyCN Jun 20, 2024
431c497
Raise error when attempting to run functions with upright but not sin…
lej0hn Jun 20, 2024
a2f6ba5
Ruff fix
lej0hn Jun 20, 2024
c39b7e5
removed unused function
AdityaPandeyCN Jun 21, 2024
6d07eeb
changes
AdityaPandeyCN Jun 21, 2024
d9ccfd5
changes
AdityaPandeyCN Jun 21, 2024
076990a
chore(morph-plot): add cli option to make cells upright
sanjayankur31 Jun 24, 2024
827cf9c
chore: regenerate man pages
sanjayankur31 Jun 24, 2024
2c9d34c
fix(3d-plotter): correct bounding box calculation
sanjayankur31 Jun 24, 2024
34ade0b
feat(vispy-plot): improve XYZ axis
sanjayankur31 Jun 24, 2024
f226bda
feat(3d-morph-plot): expose axes toggling in cli
sanjayankur31 Jun 24, 2024
2bb6229
chore(3d-morph-plot): remove unused argument, regen man page
sanjayankur31 Jun 24, 2024
c650395
fix(vispy-plotter): tweak extents of network visualisations
sanjayankur31 Jun 25, 2024
877042c
added docstrings
AdityaPandeyCN Jun 25, 2024
b4df5d1
added docstrings in parse header function
AdityaPandeyCN Jun 25, 2024
35b820e
added docstrings and refactored the functions
AdityaPandeyCN Jun 25, 2024
416f0d5
changed the docstring format
AdityaPandeyCN Jun 25, 2024
4d934ea
changed the docstring format
AdityaPandeyCN Jun 26, 2024
aa291d8
changed the string represenation function
AdityaPandeyCN Jun 26, 2024
9641853
Merge branch 'development' into feat/SWCLoaderfile
sanjayankur31 Jun 26, 2024
210792f
chore: ruff lint fix
sanjayankur31 Jun 26, 2024
5093b2a
Merge branch 'development' into feat/SWCLoaderfile
sanjayankur31 Jun 26, 2024
65c6582
fix(vispy): handle case when x/z widths are 0
sanjayankur31 Jun 26, 2024
ea453ad
feat(plotmorph): update utils to handle morphology only files
sanjayankur31 Jun 27, 2024
d30a692
feat(plot-3d): support visualisation of morphology only model files
sanjayankur31 Jun 27, 2024
3a5dfe1
feat(plot-2d-morph): support visualisation of morphology only files
sanjayankur31 Jun 27, 2024
6b04df6
test(vispy-plot): add test for morphology only plotting
sanjayankur31 Jun 27, 2024
b36bf40
Merge pull request #398 from NeuroML/feat/visualise-morph-only
sanjayankur31 Jun 27, 2024
4877a6e
feat/Added return canvas statements for jupyter visualizations
lej0hn Jul 3, 2024
9f72ece
Added jupyter-rfb package
lej0hn Jul 3, 2024
7444db0
Added argument jupyter to run in notebooks
lej0hn Jul 3, 2024
af8ed81
Removed assignment to unused variable canvas
lej0hn Jul 3, 2024
a40c4c6
feat: release 1.3.3
sanjayankur31 Jul 3, 2024
58bfec5
chore: to 1.3.4
sanjayankur31 Jul 3, 2024
7d4705d
Merge branch 'development' into feat/SWCLoaderfile
sanjayankur31 Jul 3, 2024
f3381be
chore(loadswc): set logger level
sanjayankur31 Jul 3, 2024
d5e5e60
feat(swcgraph): add docstring
sanjayankur31 Jul 3, 2024
9316cb9
feat(swcloader): upgrade error log to a value error
sanjayankur31 Jul 3, 2024
9cc464a
feat(swcloader): inform user that soma node does not have parent
sanjayankur31 Jul 3, 2024
6baa176
feat(swcloade): do not update node when getting children
sanjayankur31 Jul 3, 2024
db6d0a2
feat(swcloader): tweak log messages
sanjayankur31 Jul 3, 2024
c7f2c11
feat(swcloader): add type hints, allow exceptions to error program
sanjayankur31 Jul 3, 2024
985fed9
docs(loadswc): update docstring, add to docs
sanjayankur31 Jul 3, 2024
41380e7
chore(exportswc): remove circular dependency while generating docs
sanjayankur31 Jul 3, 2024
f5f6db5
Merge pull request #400 from NeuroML/review/ankur-384
sanjayankur31 Jul 3, 2024
f8f49d0
add download_url submit_simulation_archive return for remote biosimul…
stellaprins Jul 4, 2024
a3ac056
fix f string download url
stellaprins Jul 4, 2024
a4f37bb
minor formatting change
stellaprins Jul 4, 2024
81abeea
feat(biosimulations): return URLs for convenience
sanjayankur31 Jul 4, 2024
d9c3284
Merge branch 'development' of https://github.com/lej0hn/pyNeuroML int…
lej0hn Jul 5, 2024
be413dc
added a export_swc function to export in a ouput file
AdityaPandeyCN Jul 6, 2024
2648a36
added test for export function
AdityaPandeyCN Jul 6, 2024
a8ea598
removed example usage
AdityaPandeyCN Jul 10, 2024
596baf2
removed unused imports
AdityaPandeyCN Jul 10, 2024
4bd5ed5
added test files
AdityaPandeyCN Jul 10, 2024
37deda4
Made change to jupyter notebooks automatic, deleted jupyter argument
lej0hn Jul 10, 2024
9560f70
chore:Made loggers debug and shortened progressbar
lej0hn Jul 10, 2024
614e584
chages
AdityaPandeyCN Jul 11, 2024
fbf4b5e
feat(setup): add vispy to jupyter extra
sanjayankur31 Jul 11, 2024
3a57a1c
added docstrings
AdityaPandeyCN Jul 11, 2024
abb001a
moved the export functio inside SWCGraph
AdityaPandeyCN Jul 11, 2024
816844c
chore(setup.cfg): add jupyter extra to all install
sanjayankur31 Jul 11, 2024
eadd188
feat(vispy-jupyter): improve imports and progressbar usage
sanjayankur31 Jul 11, 2024
bcf5b45
changes
AdityaPandeyCN Jul 11, 2024
8e8d696
changes
AdityaPandeyCN Jul 11, 2024
31f10aa
Merge pull request #404 from AdityaBITMESRA/feat/ExportSWC
sanjayankur31 Jul 12, 2024
966f928
fix(timeseries-plots): remove yticks when offset is set before plotting
sanjayankur31 Jul 17, 2024
8b3b777
chore: move "make_cell_upright" to plotting utils
sanjayankur31 Jul 17, 2024
e0606f9
chore: to 1.3.5
sanjayankur31 Jul 18, 2024
ad48dac
fix: ensure variable is always defined
sanjayankur31 Jul 21, 2024
cf54234
fix(moose): correct math operator
sanjayankur31 Jul 31, 2024
2c35fa7
feat: move moose util to separate submodule
sanjayankur31 Jul 31, 2024
830501b
Merge pull request #411 from NeuroML/fix/moose-evaluator
sanjayankur31 Jul 31, 2024
3a6b89d
chore: to 1.3.6
sanjayankur31 Jul 31, 2024
4c3b488
feat(io): add generic method to check for file extensions
sanjayankur31 Aug 5, 2024
9c7dde9
feat(io): note what standard for expected file type is
sanjayankur31 Aug 6, 2024
e4fb698
feat(io): make function optionally exit instead of throwing exception
sanjayankur31 Aug 6, 2024
fc82918
feat(pynml): improve checks on file types being passed
sanjayankur31 Aug 6, 2024
71d8ae8
feat(pynml): check sbml/sedml file types also
sanjayankur31 Aug 6, 2024
d3e3984
test: add tests to check pynml fails when wrong files are provided
sanjayankur31 Aug 6, 2024
17e9adb
Merge pull request #413 from NeuroML/fix/406
sanjayankur31 Aug 13, 2024
88b9e71
Merge branch 'master' into experimental
pgleeson Aug 19, 2024
2ea1d7c
Merge pull request #416 from NeuroML/experimental
pgleeson Aug 19, 2024
1185590
To v1.3.7
pgleeson Aug 19, 2024
944bf05
Tweak to xpp export for greater xpp version compatibility
pgleeson Aug 19, 2024
79eea48
Use jnml v0.13.3
pgleeson Aug 19, 2024
9f0c26f
Merge pull request #417 from NeuroML/experimental
pgleeson Aug 19, 2024
3c12285
To v0.13.4; allows xml or sbml files to be validated as SBML
pgleeson Aug 20, 2024
f01b762
To v1.3.8; Correctly iterate the version of pynml, not jnml
pgleeson Aug 20, 2024
504ec07
Merge pull request #419 from NeuroML/experimental
pgleeson Aug 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
- name: Upgrade pip, install deps
run: |
python -m pip install --upgrade pip
pip install 'numpy<2.0.0' # due to lingering issues with other modules
pip install .[dev]

- name: List packages so far
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Ruff
on:
pull_request:
branches:
- master
- development
- experimental
- 'test*'
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
changed-files: 'true'
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,19 @@ arm64
/tests/plot/test_schematic_plot_2d_test_cell_nml_xz.png
/tests/plot/test_schematic_plot_2d_test_cell_nml_yz.png
/tests/analysis/*png
*ken.sh
/tests/plot/test_morphology*.png

.vscode
/tests/pyneuroml_20*
/pyneuroml/xppaut/report.txt
/examples/test_data/xppaut/fhn_2.ode
/examples/test_data/xppaut/fhn_brain.py
/examples/test_data/xppaut/nca_2.ode
/examples/test_data/xppaut/wc_2.ode

coverage.xml
/examples/LEMS_NML2_Ex5_DetCell.sedml.omex
/examples/hhcell.swc
/examples/metadata.rdf
/tests/utils/test_translation.net.nml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Fedora users can install pyNeuroML using the following commands:
This will also pull in all the necessary dependencies (Java, lxml, graphviz).
Please see the [project documentation](https://docs.fedoraproject.org/en-US/neurofedora/copr/) for more information.

### Installation from source
### Installation from the source

Clone the repository:

Expand Down
9 changes: 5 additions & 4 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ Here you will find information on installing, using, and contributing to pyNeuro
For more information on NeuroML standard, other tools in the NeuroML ecosystem, the NeuroML community and how to get in touch with us, please see the documentation at https://docs.neuroml.org.


Contents
---------

.. toctree::
:maxdepth: 2
:caption: Contents:
:maxdepth: 1

introduction
modules
pyneuroml

Indices and tables
==================
------------------

* :ref:`genindex`
* :ref:`modindex`
Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules.rst

This file was deleted.

7 changes: 7 additions & 0 deletions docs/source/pyneuroml.annotations.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyneuroml.annotations module
=============================

.. automodule:: pyneuroml.annotations
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/pyneuroml.io.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyneuroml.io module
======================

.. automodule:: pyneuroml.io
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/pyneuroml.modelgraphs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyneuroml.modelgraphs module
=============================

.. automodule:: pyneuroml.modelgraphs
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/source/pyneuroml.nsgr.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyneuroml.nsgr package
pyneuroml.nsgr module
======================

.. automodule:: pyneuroml.nsgr
Expand Down
8 changes: 8 additions & 0 deletions docs/source/pyneuroml.plot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ pyneuroml.plot.Plot module
:undoc-members:
:show-inheritance:

pyneuroml.plot.PlotTimeSeries module
--------------------------------------

.. automodule:: pyneuroml.plot.PlotTimeSeries
:members:
:undoc-members:
:show-inheritance:

pyneuroml.plot.PlotSpikes module
--------------------------------

Expand Down
2 changes: 2 additions & 0 deletions docs/source/pyneuroml.pynml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ pyneuroml.pynml module
:members:
:undoc-members:
:show-inheritance:
:imported-members:
:exclude-members: Cell, NeuroMLDocument, LEMSFileParser, Path, ZipFile, datetime, main
13 changes: 9 additions & 4 deletions docs/source/pyneuroml.rst
Original file line number Diff line number Diff line change
@@ -1,26 +1,31 @@
pyneuroml package
API Documentation
=================

.. automodule:: pyneuroml
:members:
:undoc-members:
:show-inheritance:
:exclude-members: print_v

Subpackages
-----------
The PyNeuroML package includes the following sub-packages:

.. toctree::
:maxdepth: 1

pyneuroml.pynml
pyneuroml.analysis
pyneuroml.annotations
pyneuroml.archive
pyneuroml.channelml
pyneuroml.io
pyneuroml.lems
pyneuroml.modelgraphs
pyneuroml.neuron
pyneuroml.nsgr
pyneuroml.pynml
pyneuroml.plot
pyneuroml.povray
pyneuroml.runners
pyneuroml.swc
pyneuroml.sbml
pyneuroml.tune
pyneuroml.utils
7 changes: 7 additions & 0 deletions docs/source/pyneuroml.runners.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyneuroml.runners module
=========================

.. automodule:: pyneuroml.runners
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/pyneuroml.sbml.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyneuroml.sbml module
======================

.. automodule:: pyneuroml.sbml
:members:
:undoc-members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/source/pyneuroml.swc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ pyneuroml.swc package
:undoc-members:
:show-inheritance:

pyneuroml.swc.LoadSWC module
------------------------------

.. automodule:: pyneuroml.swc.LoadSWC
:members:
:undoc-members:
:show-inheritance:

pyneuroml.swc.ExportSWC module
------------------------------

Expand Down
47 changes: 47 additions & 0 deletions docs/source/pyneuroml.utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,50 @@ pyneuroml.utils package
:undoc-members:
:show-inheritance:

pyneuroml.utils.info module
---------------------------

.. automodule:: pyneuroml.utils.info
:members:
:undoc-members:
:show-inheritance:

pyneuroml.utils.plot module
---------------------------

.. automodule:: pyneuroml.utils.plot
:members:
:undoc-members:
:show-inheritance:

pyneuroml.utils.misc module
---------------------------

.. automodule:: pyneuroml.utils.misc
:members:
:undoc-members:
:show-inheritance:

pyneuroml.utils.cli module
---------------------------

.. automodule:: pyneuroml.utils.cli
:members:
:undoc-members:
:show-inheritance:

pyneuroml.utils.units module
----------------------------

.. automodule:: pyneuroml.utils.units
:members:
:undoc-members:
:show-inheritance:

pyneuroml.utils.xml module
----------------------------

.. automodule:: pyneuroml.utils.xml
:members:
:undoc-members:
:show-inheritance:
6 changes: 3 additions & 3 deletions examples/LeakConductance.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ TITLE Mod file for component: Component(id=LeakConductance type=ionChannelHH)
COMMENT

This NEURON file has been generated by org.neuroml.export (see https://github.com/NeuroML/org.neuroml.export)
org.neuroml.export v1.9.1
org.neuroml.model v1.9.1
jLEMS v0.10.8
org.neuroml.export v1.10.1
org.neuroml.model v1.10.1
jLEMS v0.11.1

ENDCOMMENT

Expand Down
1 change: 0 additions & 1 deletion examples/Vm_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def generate_Vm_vs_time_plot(
simulator="jNeuroML",
include_included=True,
):

ref = "Test"
logger.info(
"Generating Vm(mV) vs Time(ms) plot for cell %s in %s using %s (Inj %snA / %sms dur after %sms delay)"
Expand Down
1 change: 0 additions & 1 deletion examples/component_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def main(args=None):
nml_doc = pynml.read_neuroml2_file(f)

for ct in nml_doc.ComponentType:

ys = []
for v in vs:
req_variables = {"v": "%sV" % v, "vShift": "10mV"}
Expand Down
1 change: 0 additions & 1 deletion examples/create_new_lems_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


if __name__ == "__main__":

############################################
# Create a LEMS file "manually"...

Expand Down
2 changes: 1 addition & 1 deletion examples/generate_if_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
plot_voltage_traces=not nogui,
plot_if=not nogui,
plot_iv=not nogui,
save_if_data_to="if_data.dat"
save_if_data_to="if_data.dat",
)
5 changes: 2 additions & 3 deletions examples/generate_povray.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

from pyneuroml.povray.NeuroML2ToPOVRay import generate_povray

#generate_povray(neuroml_file='test_data/ca1/TestOLMNet.net.nml')
# generate_povray(neuroml_file='test_data/ca1/TestOLMNet.net.nml')

generate_povray(neuroml_file='test_data/Purk2M9s.nml', scalez=3)
generate_povray(neuroml_file="test_data/Purk2M9s.nml", scalez=3)
8 changes: 4 additions & 4 deletions examples/quick_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,35 @@
siny = [math.sin(t / 10) for t in ts]
cosey = [math.exp(t / -80) * math.cos(t / 5) for t in ts]

if '-i' in sys.argv:
if "-i" in sys.argv:
from pyneuroml.plot.Plot import generate_interactive_plot

# Generate a plot for this quickly with generate_interactive_plot
ax = generate_interactive_plot(
[ts, ts], # Add 2 sets of x values
[siny, cosey], # Add 2 sets of y values
"Some traces", # Title
labels=['sin', 'cos'],
labels=["sin", "cos"],
xaxis="Time (ms)", # x axis legend
yaxis="Arbitrary units...", # y axis legend
linewidths=[1, 3], # Thicknesses of each trace
save_figure_to="quick.png",
) # Save figure

else:

# Generate a plot for this quickly with generate_plot
ax = generate_plot(
[ts, ts], # Add 2 sets of x values
[siny, cosey], # Add 2 sets of y values
"Some traces", # Title
labels=['sin', 'cos'],
labels=["sin", "cos"],
xaxis="Time (ms)", # x axis legend
yaxis="Arbitrary units...", # y axis legend
linewidths=[1, 3], # Thicknesses of each trace
show_plot_already=False, # Show or wait for plt.show()?
font_size=10, # Font
bottom_left_spines_only=True, # Box or just x & y axes
legend_position = "bottom center",
save_figure_to="quick.png",
) # Save figure

Expand Down
1 change: 0 additions & 1 deletion examples/record_channel_currents.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


if __name__ == "__main__":

root_dir = "test_data/ca1"
cell_file = "cells/olm.cell.nml"
cell_comp = "olmcell"
Expand Down
4 changes: 2 additions & 2 deletions examples/test_data/realtime.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from pyneuroml import pynml


command = 'python snooze.py'
run_dir = '.'
command = "python snooze.py"
run_dir = "."

oo = pynml.execute_command_in_dir_with_realtime_output(command, run_dir, verbose=True)

Expand Down
Loading
Loading