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
[MRG] add method for updating cell biophysics from Network instance #321
Merged
jasmainak
merged 34 commits into
jonescompneurolab:master
from
rythorpe:set_cell_biophys
May 18, 2021
Merged
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
e7b565a
create Network.set_cell_biophysics method
rythorpe 9923c35
instantiate Cell objects in Network
rythorpe 9360344
append by cell type
rythorpe cb07c1b
create gid-to-cell lookup method
rythorpe e970c14
add cell_properties attribute to Network
rythorpe 30d1a74
call Cell.build() from network_builder.py
rythorpe e8a7457
remove pos arg from default cell funcs
rythorpe 1b9f491
adjust tests
rythorpe e71cee5
instantiate cells in network_builder.py
rythorpe c8ee14f
demo in plot_simulate_gamma.py
rythorpe 5a15db9
flake8
rythorpe 40857a6
remove set_biophysics method
rythorpe bc89478
revert to when cells were instantiated in Network
rythorpe 0ba4c25
fix to pass tests
rythorpe 3320b7c
Revert "remove pos arg from default cell funcs"
rythorpe a03f6ad
reinstill pos arg in default cell funcs and fix Network.copy()
rythorpe cf9ef0f
streamline Cell.build() and pass tests
rythorpe 4b173b5
gamma example
rythorpe f2efb8a
store template Cell objects in Network.cell_types
rythorpe fbe9d67
rename create_cells->update_cells
rythorpe 89471de
make update_cells() private and call from NetworkBuilder
rythorpe 78016c8
clean up cell arguments
rythorpe f20cb14
make insert_dipole private
rythorpe ecbe3c3
nitpicks
rythorpe c3c2923
add sec_name_apical test
rythorpe f3c89d2
make NetworkBuilder.cells private
rythorpe 2c76882
docstring
rythorpe b613cc3
create test for _update_cells()
rythorpe 3250b19
add _cell_type_names attribute to CellResponse
rythorpe ae52db7
adjust sphinxopts for circleci
rythorpe da58797
update whats_new.rst
rythorpe e1bfa15
simplify network test
rythorpe 66dda85
fix whats_new.rst
rythorpe e9c79bf
remove Network._get_src_type_and_pos() method
rythorpe File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rythorpe what do you think about adding a few print statements (perhaps in another code block) to show off how you can inspect the biophysical parameter values?
Edit:
On second thought, a followup PR could just add a clean
__repr__
that summarizes the important parameters.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're thinking like a more verbose
Cell.__repr__()
method?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah exactly! I'm getting of the mindset that any API we add to modify parameters will need to come with a really straightforward way to inspect those parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds great actually. I'll leave that for the next PR since there's talk of potentially combining the
Cell
andCellResponse
classes.