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

Update PyNEST examples to use NEST 3 features #1534

Merged
merged 53 commits into from
May 17, 2021

Conversation

terhorstd
Copy link
Contributor

addressing issues in #1504

@heplesser heplesser added I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: High Should be handled next T: Enhancement New functionality, model or documentation labels Apr 22, 2020
@heplesser heplesser added this to the NEST 3.0 milestone Apr 22, 2020
@sarakonradi sarakonradi mentioned this pull request Apr 24, 2020
24 tasks
@terhorstd terhorstd linked an issue Apr 28, 2020 that may be closed by this pull request
14 tasks
@sarakonradi
Copy link
Contributor

After discussing this with @terhorstd offline, we agreed to remove the 50-example checklist in #1504. I have now added a new list comprised of general aspects to inspect across the examples.

Most items are code-related. I am happy taking care of the last two points, as they are documentation-based.

@hakonsbm @abigailm Please feel free to tick further boxes that are done!

@sarakonradi
Copy link
Contributor

Having discussed this offline, the most efficient way to go about the examples is to divide #1504 into several mini PRs and to rename this PR.

@terhorstd Could we turn off draft mode then? And shall we title this PR "Incorporate NEST 3 features into PyNEST examples"?

As @hakonsbm sent his PR to your branch, there are still some SetDefaults() that we should probably get rid of. I have added this point to the #1504 checklist.

@terhorstd terhorstd changed the title reworked code style in pynest/examples update PyNEST examples to used NEST 3 features May 20, 2020
@terhorstd terhorstd changed the title update PyNEST examples to used NEST 3 features update PyNEST examples to use NEST 3 features May 20, 2020
@terhorstd terhorstd marked this pull request as ready for review May 20, 2020 08:30
@sarakonradi sarakonradi mentioned this pull request May 20, 2020
14 tasks
@terhorstd terhorstd removed a link to an issue May 20, 2020
14 tasks
Copy link
Contributor

@stinebuu stinebuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I have some comments and suggestions.

pynest/examples/brunel_alpha_nest.py Outdated Show resolved Hide resolved
pynest/examples/brunel_delta_nest.py Outdated Show resolved Hide resolved
pynest/examples/brunel_exp_multisynapse_nest.py Outdated Show resolved Hide resolved
pynest/examples/clopath_synapse_spike_pairing.py Outdated Show resolved Hide resolved
pynest/examples/if_curve.py Outdated Show resolved Hide resolved
pynest/examples/sinusoidal_gamma_generator.py Outdated Show resolved Hide resolved
pynest/examples/sinusoidal_poisson_generator.py Outdated Show resolved Hide resolved
pynest/examples/structural_plasticity.py Outdated Show resolved Hide resolved
@stinebuu stinebuu linked an issue Mar 10, 2021 that may be closed by this pull request
@heplesser
Copy link
Contributor

@terhorstd Please remove pynest/examples/spatial/hill_tononi_Vp.py to resolve the conflict, it has been removed in master.

@terhorstd
Copy link
Contributor Author

So, it's not all perfect, but most things work and some are explicitly split of into separate PRs, like the quantal synapse example. I expect more separate issues/PRs will appear, but they should then be handled on their own.

@jougs jougs requested review from jougs and removed request for jhnnsnk May 5, 2021 16:31
Copy link
Contributor

@stinebuu stinebuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @terhorstd! I have just some small comments and suggested updates.

pynest/examples/brunel_alpha_nest.py Outdated Show resolved Hide resolved
pynest/examples/brunel_delta_nest.py Outdated Show resolved Hide resolved
pynest/examples/brunel_exp_multisynapse_nest.py Outdated Show resolved Hide resolved
tox.ini Show resolved Hide resolved
examples/matplotlib/matplotlibrc Show resolved Hide resolved
Copy link
Contributor

@jougs jougs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than my 4 minor suggestions, I'm fine with this and approve on condition that you address them timely.

As I took over the review assignment from @jhnnsnk and can assert that all of @stinebuu's concerns have been addressed appropriately, my approval is also the second one required.

.gitignore Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
pynest/examples/CampbellSiegert.py Outdated Show resolved Hide resolved
Copy link
Contributor

@jougs jougs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second thought just seconds later, I decided to commit the suggestions myself and merge :-)

@jougs jougs merged commit 794d7eb into nest:master May 17, 2021
@terhorstd terhorstd changed the title update PyNEST examples to use NEST 3 features Update PyNEST examples to use NEST 3 features Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: High Should be handled next T: Enhancement New functionality, model or documentation
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Examples fail with voltage_trace has no attribute show
7 participants