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 NML v2.3 release #168

Merged
merged 392 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
392 commits
Select commit Hold shift + click to select a range
0e2562a
chore(nml.py): regenerate
sanjayankur31 Sep 27, 2022
f4e25dd
feat(nml.py): improve regex to handle all args
sanjayankur31 Sep 27, 2022
6777bb3
chore(nml.py): regenerate
sanjayankur31 Sep 27, 2022
7a9d782
feat(linting): ignore nml.py and helper_methods.py
sanjayankur31 Sep 28, 2022
75c1d94
feat(nml.py): add new function to get a list of unbranched segments
sanjayankur31 Sep 28, 2022
3961498
chore(nml.py): regenerate
sanjayankur31 Sep 28, 2022
850ef62
test(nml.py): add test for `add_unbranched_segments`
sanjayankur31 Sep 28, 2022
e9e4a90
docs(cell.summary): improve doc string
sanjayankur31 Sep 28, 2022
02323b2
chore(mypy): add mypy config file
sanjayankur31 Sep 28, 2022
db0fcab
chore(nml.py): correct docstring formatting
sanjayankur31 Sep 28, 2022
2da0ff1
chore(nml.py): regenerate
sanjayankur31 Sep 28, 2022
83a7e05
chore(generatedssupersuper): fix docstrings
sanjayankur31 Sep 28, 2022
307ffc4
chore: format tests
sanjayankur31 Sep 28, 2022
a960d28
chore: correct docstring
sanjayankur31 Sep 28, 2022
b52fd6f
fix: correct `component_factory` usage
sanjayankur31 Sep 28, 2022
7da681c
feat: correct `component_factory` usage
sanjayankur31 Sep 28, 2022
9614fcc
chore: regenerate nml.py
sanjayankur31 Sep 28, 2022
4324998
fix(add_segment): ensure segment groups are included in default groups
sanjayankur31 Sep 28, 2022
fa70cd3
chore(nml.py): regenerate
sanjayankur31 Sep 28, 2022
67d9856
feat(nml.py): add default name to new segments
sanjayankur31 Sep 29, 2022
5a532aa
chore(nml.py): regenerate
sanjayankur31 Sep 29, 2022
b880921
feat(nml.py): correctly set neurolex ids
sanjayankur31 Sep 29, 2022
1c8d4cb
feat(nml.py): set default names for segments
sanjayankur31 Sep 29, 2022
3478190
chore(nml.py): regenerate
sanjayankur31 Sep 29, 2022
bd302c0
feat(nml.py): make `get_segment_group*` raise `ValueError` instead of…
sanjayankur31 Sep 29, 2022
ca06b97
feat(nml.py): push default segment groups to end
sanjayankur31 Sep 29, 2022
9ae6e3e
chore(nml.py): regenerate
sanjayankur31 Sep 29, 2022
1f82fb5
feat(nml.py): move cell specific factory code to super class
sanjayankur31 Sep 29, 2022
142b1bb
feat(setup_nml_cell): allow overwriting but do not do it by default
sanjayankur31 Sep 30, 2022
e277cd0
chore(nml.py): regenerate
sanjayankur31 Sep 30, 2022
b05993f
feat(utils): use generateds based validation
sanjayankur31 Sep 30, 2022
aaee268
fix(loaders): use full import to prevent cyclic dependency issues
sanjayankur31 Sep 30, 2022
09b0f6f
chore(nml.py): regenerate
sanjayankur31 Sep 30, 2022
21d2164
Merge branch 'feat/190' into development
sanjayankur31 Sep 30, 2022
676e479
feat(version): ensure `neuroml.__version__` is still usable
sanjayankur31 Sep 30, 2022
7f66366
feat(generatedssupersuper): make `get_members` and `check_arg_list` p…
sanjayankur31 Oct 4, 2022
8bf7290
docs: show inherited members
sanjayankur31 Oct 4, 2022
a894ba6
fix(generatedssupersuper): make `get_members` and `check_arg_list` pr…
sanjayankur31 Oct 4, 2022
7172719
fix: add new methods to create branched and unbranched segment groups
sanjayankur31 Oct 4, 2022
743cecc
feat(nml.py)!: `group` -> `group_id` for clarity
sanjayankur31 Oct 4, 2022
4baf798
feat(nml.py): add `set_spike_thresh` to `Cell`
sanjayankur31 Oct 4, 2022
8b4efd4
chore(nml.py): regenerate
sanjayankur31 Oct 4, 2022
bf511b6
chore: correct docstring
sanjayankur31 Oct 4, 2022
53fafd6
docs: show inherited members
sanjayankur31 Oct 4, 2022
b1d15eb
Merge pull request #149 from NeuralEnsemble/feat/doc-tweaks
sanjayankur31 Oct 4, 2022
3dab559
feat(annotate): use `a ..` instead of `one ..`.
sanjayankur31 Oct 4, 2022
56fde7b
chore(nml.py): regenerate
sanjayankur31 Oct 4, 2022
96ba4a2
Merge branch 'feat/improve-nml-constructors' into development
sanjayankur31 Oct 4, 2022
80c6115
chore: fix docstring
sanjayankur31 Oct 4, 2022
def01eb
feat(nml.py): update regeneration scripts
sanjayankur31 Oct 4, 2022
22f58d6
chore(nml.py): regenerate
sanjayankur31 Oct 4, 2022
b2a1cb2
fix(component_factory): correct check for `Cell` class
sanjayankur31 Oct 4, 2022
7048841
feat(add_segment): do not add members to the default groups
sanjayankur31 Oct 4, 2022
e328f00
feat(cell-builders): allow turning off automatic segment group reorde…
sanjayankur31 Oct 4, 2022
b51e443
chore(get_segment): raise `ValueError` instead of `Exception`
sanjayankur31 Oct 4, 2022
f2c88f5
feat(add_segment): allow explicitly setting a segment id
sanjayankur31 Oct 4, 2022
5f59667
fix(add_segment): remove redundant add method call
sanjayankur31 Oct 4, 2022
c5f5d52
chore(nml.py): regenerate
sanjayankur31 Oct 4, 2022
e86c53a
refactor(nml.py): improve `add_segment` logic and docs
sanjayankur31 Oct 5, 2022
09286fe
chore(nml.py): regenerate
sanjayankur31 Oct 5, 2022
82d87d9
feat(nml.py)!: uncouple segment type from its group id
sanjayankur31 Oct 6, 2022
33d7b87
chore(nml.py): regenerate
sanjayankur31 Oct 6, 2022
3b77d65
test(nml.py): update tests to use new `add_segment` signature
sanjayankur31 Oct 6, 2022
864be44
fix(nml.py): correct argument
sanjayankur31 Oct 6, 2022
3e93ef1
chore(nml.py): regenerate
sanjayankur31 Oct 6, 2022
ac90cf2
test(nml.py): add test for segment addition without group
sanjayankur31 Oct 6, 2022
076e1f4
perf(add_segment): do not use `_add`
sanjayankur31 Oct 6, 2022
ef10ce4
chore(nml.py): regenerate
sanjayankur31 Oct 6, 2022
0e5e7dc
feat(nml.py): check for both identity and value in `__add`
sanjayankur31 Oct 7, 2022
9023bb6
feat(nml.py): do not run membership checks when adding segments
sanjayankur31 Oct 7, 2022
7cc0b81
chore(nml.py): regenerate
sanjayankur31 Oct 7, 2022
a35f1a6
docs(get_all_segments_in_group): correct docstring
sanjayankur31 Oct 7, 2022
1d8e848
feat(nml.py): implement `optimise_segment_group` functions
sanjayankur31 Oct 7, 2022
34bb632
test(nml.py): test `optimise_segment_group`
sanjayankur31 Oct 7, 2022
6d63e80
chore(nml.py): regenerate
sanjayankur31 Oct 7, 2022
cb7def2
fix(nml.py): correct function call
sanjayankur31 Oct 7, 2022
04567fc
perf(nml.py): only clean up members if both segment groups and member…
sanjayankur31 Oct 7, 2022
f982708
chore(nml.py): regenerate
sanjayankur31 Oct 7, 2022
11237be
perf(nml.py): use low level methods for performance
sanjayankur31 Oct 7, 2022
7f96184
chore(nml.py): regenerate
sanjayankur31 Oct 7, 2022
e4d9f4e
perf(nml.py): cache `_get_members` to improve performance
sanjayankur31 Oct 7, 2022
e5d6b91
test(nml.py): add more checks for `_get_members`
sanjayankur31 Oct 10, 2022
66e922c
feat(Cell): add method to create segment groups of unbranched branches
sanjayankur31 Oct 11, 2022
e9db515
test(nml.py): add test for `create_unbranched_segment_group_branches`
sanjayankur31 Oct 11, 2022
ecbd0d1
chore(nml.py): regenerate
sanjayankur31 Oct 11, 2022
212a4bd
fix(nml.py): correct type hinting
sanjayankur31 Oct 11, 2022
2c15811
chore(nml.py): remove some type hints
sanjayankur31 Oct 11, 2022
59e1100
chore(nml.py): regenerate
sanjayankur31 Oct 11, 2022
088e6d7
chore(nml.py): correct docstring formatting
sanjayankur31 Oct 11, 2022
bbf17d6
Merge pull request #150 from NeuralEnsemble/feat/add-sectionise-method
sanjayankur31 Oct 11, 2022
f5bfe5f
Slightly less verbose
pgleeson Nov 7, 2022
2a13bcd
Incorrect location for verbose
pgleeson Nov 10, 2022
bddbbd3
fix(nml): include statement in try block
sanjayankur31 Nov 24, 2022
7d8fadd
feat(cell-builders): improve default group creation
sanjayankur31 Nov 24, 2022
395e065
feat(cell-builder): allow reordering/optimisation after segment addit…
sanjayankur31 Nov 24, 2022
1092dd1
chore: bump version to 0.4.2
sanjayankur31 Nov 25, 2022
112265f
improvement(cell-utils): refactor segment group creation
sanjayankur31 Nov 25, 2022
8b6a5a3
chore(nml.py): regeneate
sanjayankur31 Nov 25, 2022
8173b65
improvement(nml.py): ensure `membrane_properties` exists before child…
sanjayankur31 Nov 25, 2022
33257e1
feat(cell-utils): add method to get information about a segment_group
sanjayankur31 Nov 28, 2022
94b9068
improvement(info): make list/dict return same values as printed text
sanjayankur31 Nov 28, 2022
8b5b800
Revert "improvement(info): make list/dict return same values as print…
sanjayankur31 Nov 28, 2022
335d394
feat(cell): improve summary to also show biophysical props.
sanjayankur31 Nov 28, 2022
87bc3c8
chore(nml): regenerate
sanjayankur31 Nov 28, 2022
c6d5520
test(nml): add quick test for morphinfo
sanjayankur31 Nov 28, 2022
5a3e53a
Merge pull request #154 from NeuralEnsemble/feat/cell-util-improvemen…
sanjayankur31 Nov 28, 2022
b4721d1
feat!(loaders): remove deprecated SWCLoader class
sanjayankur31 Nov 29, 2022
48921c8
Revert "feat!(loaders): remove deprecated SWCLoader class"
sanjayankur31 Nov 30, 2022
c2f829f
feat!(loaders): deprecate SWCLoader class
sanjayankur31 Nov 30, 2022
6ac31b5
chore: update changelog
sanjayankur31 Nov 30, 2022
c61e874
chore: update authors list
sanjayankur31 Nov 30, 2022
7cd0eee
Merge pull request #155 from NeuralEnsemble/feat/deprecate-swcloader
pgleeson Nov 30, 2022
614f286
feat(cellutils): make all channeldensity functions return the object …
sanjayankur31 Dec 2, 2022
a7bc6f0
chore: regenerate
sanjayankur31 Dec 2, 2022
39fc3b2
chore(cellutils): only print segment group id, not its contents
sanjayankur31 Dec 2, 2022
b863e64
chore(nml.py): regenerate
sanjayankur31 Dec 2, 2022
1c24bc0
chore: fix f-string
sanjayankur31 Dec 2, 2022
9643649
fix(loaders): do not empty list of includes even if `include_includes…
sanjayankur31 Dec 6, 2022
f4415dc
feat(loaders): re-add SWC loader, mark for future deprecation
sanjayankur31 Dec 7, 2022
c653708
Print version info
pgleeson Jan 19, 2023
6b294cb
More general exception raised, due to numpy complaining
pgleeson Jan 19, 2023
41f62a8
Update github actions
pgleeson Jan 19, 2023
bdba902
chore: update copyright year
sanjayankur31 Jan 25, 2023
2d67fa7
ci(py311): add py311 to matrix/setup.py
sanjayankur31 Jan 31, 2023
f61bac3
Merge pull request #159 from NeuralEnsemble/feat/py3.11
sanjayankur31 Jan 31, 2023
b6ef396
improvement(nml.py): document `get_ordered_segments_in_groups` better
sanjayankur31 Feb 13, 2023
8121f1a
chore(nml.py): regenerate
sanjayankur31 Feb 13, 2023
fd62d75
chore(nml.py): correct list in method doc
sanjayankur31 Feb 13, 2023
2824309
chore(nml.py): reformat tuple in method doc
sanjayankur31 Feb 13, 2023
4709e83
fix(nml.py): ensure that list order is maintained
sanjayankur31 Feb 15, 2023
7ad198e
chore(nml.py): regenerate
sanjayankur31 Feb 15, 2023
19832b7
fix: correct variable name
sanjayankur31 Feb 15, 2023
1cf4b13
test: add test for `cell.get_segment_adjacency_list`
sanjayankur31 Mar 1, 2023
6eebc5f
wip
sanjayankur31 Mar 1, 2023
d283522
feat(nml.py): add methods to generate graph and get shortest paths
sanjayankur31 Mar 2, 2023
6a600bd
test(nml.py): test cell graph and path methods
sanjayankur31 Mar 2, 2023
3a658fd
feat(nml.py): add method to get distances to all segments
sanjayankur31 Mar 2, 2023
e4a211c
test(nml.py): add simple tests for distance related methods
sanjayankur31 Mar 2, 2023
b02f618
chore(nml.py): regenerate
sanjayankur31 Mar 2, 2023
56fbc7e
feat: bump version to signal enhancements
sanjayankur31 Mar 2, 2023
9c946cd
fix(deps): add `networkx`
sanjayankur31 Mar 2, 2023
b3cda04
fix: add `pygraphviz` to dev reqs
sanjayankur31 Mar 2, 2023
ca48f91
ci: add libgraphviz-dev
sanjayankur31 Mar 2, 2023
c0225b7
ci: add libgraphviz-dev
sanjayankur31 Mar 2, 2023
722b3f2
feat(cell): add method to get segments at given distance
sanjayankur31 Mar 7, 2023
f03feb9
test(cell): test `get_segments_at_distance`
sanjayankur31 Mar 7, 2023
ddb91c3
chore(nml.py): regenerate
sanjayankur31 Mar 7, 2023
86a3f7e
feat: update method signature to make `distance` compulsory
sanjayankur31 Mar 7, 2023
a2dd61f
chore(nml.py): regenerate
sanjayankur31 Mar 7, 2023
50a687f
feat(morphology): add methods to get branching points and extremeties
sanjayankur31 Mar 9, 2023
d3943b4
chore(nml.py): regenerate
sanjayankur31 Mar 9, 2023
55a9ebe
feat(cell): add method to get information on location of a segment
sanjayankur31 Mar 9, 2023
fef89ea
chore(nml.py): regenerate
sanjayankur31 Mar 9, 2023
8d2a0bc
feat(get_extremeties): also return distances for extremeties
sanjayankur31 Mar 10, 2023
c2498cd
chore(nml.py): regenerate
sanjayankur31 Mar 10, 2023
6dc0bbe
fix(nml.py): handle case of zero length segments
sanjayankur31 Mar 10, 2023
9e8ec23
fix(segment-distance): correctly initialise `sg_root`
sanjayankur31 Mar 13, 2023
2341154
chore(nml.py): regenerate
sanjayankur31 Mar 13, 2023
730d499
feat(cell-helpers): check conventional morph root first
sanjayankur31 Mar 14, 2023
21d33be
chore(nml.py): regenerate
sanjayankur31 Mar 14, 2023
d8dbab1
test: add test for `get_morphology_root`
sanjayankur31 Mar 14, 2023
866f890
improvement: use existing `get_segment_length` method
sanjayankur31 Mar 14, 2023
8bf9511
improvement: use `get_segment_length` method
sanjayankur31 Mar 14, 2023
f270edb
chore: limit to single cell test
sanjayankur31 Mar 14, 2023
4403f1c
chore(nml.py): regenerate
sanjayankur31 Mar 14, 2023
baeaef0
feat(nml.py): split out helper imports into separate file
sanjayankur31 Mar 16, 2023
75e7c47
chore(nml.py): regenerate
sanjayankur31 Mar 16, 2023
99a72ca
fix(nml.py): correct arg type in doc string
sanjayankur31 Apr 19, 2023
f090aa1
Merge branch 'development' into feat/lengths
sanjayankur31 Apr 19, 2023
26aee52
chore: correct type annotation
sanjayankur31 Apr 19, 2023
70d91b8
chore: correct type annotation
sanjayankur31 Apr 19, 2023
c2a289b
Merge branch 'development' into feat/lengths
sanjayankur31 Apr 19, 2023
8adb94c
chore: format with black
sanjayankur31 Apr 20, 2023
5cdf554
chore: update copyright year
sanjayankur31 Apr 20, 2023
6f881b2
Merge pull request #161 from NeuralEnsemble/feat/format-black
sanjayankur31 Apr 20, 2023
b9cec08
Merge branch 'development' into feat/lengths
sanjayankur31 Apr 20, 2023
b331116
Merge pull request #162 from NeuralEnsemble/development
pgleeson Apr 24, 2023
447b953
Merge pull request #163 from NeuralEnsemble/feat/lengths
pgleeson Apr 24, 2023
d9c0389
Test miltiple os
pgleeson Apr 24, 2023
2c549c4
test(lengths): remove dot exporter method and pygraphviz dev dep
sanjayankur31 Apr 24, 2023
8ebbf5c
Merge pull request #164 from NeuralEnsemble/feat/lengths
pgleeson Apr 25, 2023
39c367b
fix: refactor `print_` to remove circular imports
sanjayankur31 Apr 26, 2023
29e284c
chore: correct docstring
sanjayankur31 Apr 26, 2023
d41d1ff
Merge pull request #166 from NeuralEnsemble/fix/165
pgleeson Apr 26, 2023
8fb41c5
Merge branch 'feat/lengths' into experimental
pgleeson Apr 26, 2023
85f88ae
Just test ubuntu-latest for now
pgleeson Apr 26, 2023
cb0d697
Merge pull request #160 from NeuralEnsemble/feat/lengths
pgleeson May 2, 2023
aa9b57e
Merge branch 'development' into experimental
pgleeson May 2, 2023
d6e8001
Back to tests on all py versions
pgleeson May 2, 2023
08929ec
Merge pull request #167 from NeuralEnsemble/experimental
pgleeson May 2, 2023
3e0abbb
chore: sync schema
sanjayankur31 May 3, 2023
7af3db9
chore(nml.py): regenerate
sanjayankur31 May 3, 2023
ff5994e
chore: sync schema
sanjayankur31 May 3, 2023
2a04222
chore(nml.py): regenerate
sanjayankur31 May 3, 2023
e0cd0b6
chore: sync schema
sanjayankur31 May 3, 2023
ac058fb
chore(nml.py): regenerate
sanjayankur31 May 3, 2023
ea02761
Merge pull request #169 from NeuralEnsemble/feat/sync-nml2-205
pgleeson May 3, 2023
dbdc5b2
Merge branch 'master' into experimental
pgleeson May 4, 2023
f5d50a2
Add python-publish
pgleeson May 10, 2023
c9c705f
Update python-publish.yml
pgleeson May 10, 2023
9136835
To v0.5.1
pgleeson May 10, 2023
5eb9c68
fix: add rtd config to fix docs build
sanjayankur31 May 10, 2023
0f54e41
fix(rtd): update conf to list requirements
sanjayankur31 May 10, 2023
5fa0f09
docs: add `lxml` to requirements
sanjayankur31 May 10, 2023
3167804
fix(rtd): add more modules to reqs
sanjayankur31 May 10, 2023
fa36594
feat(schema): link to schema documentation index
sanjayankur31 May 11, 2023
fb81192
numpy should be an explicit requirement
pgleeson May 19, 2023
a8fc4ae
Merge pull request #170 from NeuralEnsemble/feat/link-to-index
pgleeson May 19, 2023
4636f01
Merge pull request #171 from NeuralEnsemble/experimental
pgleeson May 19, 2023
0e36381
feat: migrate away from deprecated setup.py
sanjayankur31 Jun 14, 2023
810f641
chore: defile `full` extra, update gha workflows
sanjayankur31 Jun 14, 2023
5f6190e
chore: remove setup.py from docs
sanjayankur31 Jun 14, 2023
e22dcfc
Test on mac, win
pgleeson Jun 14, 2023
3f68415
Remove travis file
pgleeson Jun 22, 2023
bcace75
Remove mongodb setup step
pgleeson Jun 22, 2023
7e94984
Remove deps
pgleeson Jun 22, 2023
af4dd42
Merge branch 'chore/remove-setup.py' into experimental
pgleeson Jun 22, 2023
7d1c8b4
Just run pytest on linux
pgleeson Jun 22, 2023
fff4346
Disable one test on mac for py3.7; fix long_description_content_type
pgleeson Jun 22, 2023
d66eb51
To v0.5.3
pgleeson Jun 22, 2023
92d9f27
Merge pull request #174 from NeuralEnsemble/experimental
pgleeson Jun 22, 2023
225c91e
Ensure example run on more platforms
pgleeson Jun 22, 2023
f0eb538
Merge branch 'experimental' into development
pgleeson Jun 22, 2023
200200c
chore(ci): bump GH actions
sanjayankur31 Jul 26, 2023
e03f060
Minor formatting
pgleeson Jul 26, 2023
2d109fe
feat(nml.py): use natsort to properly sort segments/groups when optim…
sanjayankur31 Aug 16, 2023
babe20b
chore(deps): add natsort to install reqs
sanjayankur31 Aug 17, 2023
112c56b
docs(regen): add natsort dep and regen
sanjayankur31 Aug 17, 2023
815bfae
chore(loaders): fix type hinting for doc generation
sanjayankur31 Aug 17, 2023
b7f3bdf
Merge pull request #177 from NeuralEnsemble/feat/cell-optimise-natsort
pgleeson Aug 17, 2023
2cdd7c6
feat(nml): add method to get a complete hierarchy for any component type
sanjayankur31 Sep 8, 2023
4aa1d5d
feat(utils): add function to pretty print hierarchy
sanjayankur31 Sep 8, 2023
e72e8be
test: test hierarchy functions
sanjayankur31 Sep 8, 2023
f8865d8
feat(nml): add wrapper to generate hierarchy of full nml
sanjayankur31 Sep 8, 2023
324d5d4
feat(utils): add utils to generate relative paths between components
sanjayankur31 Sep 8, 2023
4f5e2c1
chore: Digraph -> DiGraph
sanjayankur31 Sep 8, 2023
6f1d5f9
feat(get-path): return path and graph
sanjayankur31 Sep 8, 2023
63dc4cf
test: test hier graph and path generation
sanjayankur31 Sep 8, 2023
81d4d5c
Merge pull request #178 from NeuralEnsemble/feat/path-util
pgleeson Sep 11, 2023
ae16f2b
Merge branch 'master' into development
pgleeson Sep 11, 2023
909c729
Merge branch 'development' into experimental
pgleeson Sep 11, 2023
6979aee
Merge branch 'master' into experimental
pgleeson Sep 11, 2023
7cb0adc
Merge branch 'master' into experimental
pgleeson Sep 11, 2023
55bf626
Merge pull request #179 from NeuralEnsemble/experimental
pgleeson Sep 19, 2023
eb37964
To v0.5.4
pgleeson Sep 19, 2023
af44198
Merge pull request #180 from NeuralEnsemble/experimental
pgleeson Sep 19, 2023
dee6fdf
Update to latest schema
pgleeson Sep 20, 2023
80d88a0
Regenerated nml.py
pgleeson Sep 20, 2023
6e17de5
To v0.5.5
pgleeson Sep 20, 2023
b10d8c9
Merge pull request #181 from NeuralEnsemble/experimental
pgleeson Sep 20, 2023
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
32 changes: 19 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,56 @@ name: Build

on:
push:
branches: [ master, development ]
branches: [ master, development, experimental ]
pull_request:
branches: [ master, development ]
branches: [ master, development, experimental ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
runs-on: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3

- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.3.0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
sudo apt-get install libhdf5-serial-dev liblzo2-dev -y
#sudo apt-get install libhdf5-serial-dev liblzo2-dev libgraphviz-dev -y
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Build package
run: |
pip install .[full]

- name: Test with pytest
if: ${{ matrix.runs-on == 'ubuntu-latest' }}
run: |
pytest
# Just test on linux for now...
pytest -vs

- name: Run examples
if: ${{ matrix.python-version != '3.7' || matrix.runs-on != 'macos-latest' }} # issue with _bz2 module...
run: |
cd neuroml/examples
python run_all.py

- name: Final version info
run: |
cd ./neuroml/examples && python run_all.py
pip list

- name: Lint with flake8
if: ${{ matrix.runs-on == 'ubuntu-latest' }}
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
15 changes: 7 additions & 8 deletions .github/workflows/regenerate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,31 @@ name: Regenerate nml.py

on:
push:
branches: [ master, development ]
branches: [ master, development, experimental ]
pull_request:
branches: [ master, development ]
branches: [ master, development, experimental ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
sudo apt-get install libhdf5-serial-dev liblzo2-dev -y
sudo apt-get install libhdf5-serial-dev liblzo2-dev libgraphviz-dev -y
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install .[dev]

- name: Rebuild nml.py
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ neuroml/test/*.h5
.venv
/data
.mypy_cache/

sed-script.txt
/test.sh
18 changes: 18 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"


sphinx:
configuration: doc/conf.py


python:
install:
- method: pip
path: .
extra_requirements:
- doc
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

8 changes: 7 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ Contributions to the Python libNeuroML package:

Andrew Davison [1]
Michele Mattioni [2]
Padraig Gleeson [3]
Padraig Gleeson [3]
Mike Vella [4]
Mike Hull [5]
Ankur Sinha [3]

[1] UNIC, CNRS, Gif sur Yvette
[2] EBI
Expand All @@ -13,3 +14,8 @@ Mike Hull [5]
[5] University of Bristol

If you contribute code, please add your name and affiliation to this file.

Please see also:

- https://github.com/NeuralEnsemble/libNeuroML/graphs/contributors
- https://docs.neuroml.org/NeuroMLOrg/Contributors.html
29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,38 @@ A related package, **[pyNeuroML](https://github.com/NeuroML/pyNeuroML)** builds

pyNeuroML builds on: [libNeuroML](https://github.com/NeuralEnsemble/libNeuroML) & [PyLEMS](https://github.com/LEMS/pylems) and wraps functionality from [jNeuroML](https://github.com/NeuroML/jNeuroML).


## Development process for libNeuroML

Most of the work happens in the [development branch](https://github.com/NeuralEnsemble/libNeuroML/tree/development).
That branch is kept up to date with the development branches for [NeuroML 2](https://github.com/NeuroML/NeuroML2/tree/development) and related libraries.
See https://docs.neuroml.org/ for an overview of the various NeuroML libraries.

## Changelog
### version 0.2.57 (dev)

### version 0.4.1

- add multiple cell builder utility functions
- performance improvements in generic helper functions
- documentation fixes/improvements
- add type annotations to all nml classes to aid users
- add level 1 validation method
- add generic component inspection methods

### version 0.4.0

- update to use schema version 2.3
- drop python 2 support

### version 0.3.1

- include schema documentation in generated `nml.py` API
- introduce generic methods to add child/children elements to components

### version 0.2.58

- multiple documentation fixes

### version 0.2.57

- Enable Python 3.10 support
- Regenerate nml.py with generateDS using Python 3
Expand Down Expand Up @@ -105,6 +128,4 @@ See https://docs.neuroml.org/ for an overview of the various NeuroML libraries.
- Schema validation utility
- Improved documentation and documentation new look


:copyright: Copyright 2023 by the libNeuroML team, see [AUTHORS](AUTHORS). Modified BSD License, see [LICENSE](LICENSE) for details.

Loading