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

Improved comments in gap_junction Pynest examples #623

Merged
merged 3 commits into from
Jan 9, 2017

Conversation

janhahne
Copy link
Contributor

@janhahne janhahne commented Jan 6, 2017

Improved comments (added additional information and markdown notation) in the gap-junction Pynest examples

http://www.nest-simulator.org/py_sample/gap_junctions_two_neurons/
http://www.nest-simulator.org/py_sample/gap_junctions_inhibitory_network/

to increase readability on the NEST homepage.

Just a change of documentation, no change in functionality. @steffengraber or @heplesser, could you have a quick look? There is probably no need for a detailed review.

input of 500.0 Hz with synaptic weight JE = 300.0 pA and the same
delay d. In addition (60*500)/2 gap junctions are added randomly to the
network resulting in an average of 60 gap-junction connections per neuron.
This script simulates an inhibitory network of `500` Hodgkin-Huxley neurons.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that setting 500 in backticks will improve readability. I would use backticks only for actual code examples. This applies to the remainder of the text.

a stable synchronous state is reached.

This example is also used as test case 2 (see figure 9 and 10)
in the article Hahne et al. (2015)
Copy link
Contributor

Choose a reason for hiding this comment

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

Just "in Hahne et al. (2015)"

Copy link
Contributor

@heplesser heplesser left a comment

Choose a reason for hiding this comment

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

@janhahne I think you did a nice job, but see my comments/questions.

'wfr_comm_interval': 1.0,
'wfr_tol': 0.0001,
'wfr_max_iterations': 15,
'wfr_interpolation_order': 3})
Copy link
Contributor

Choose a reason for hiding this comment

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

Why have you removed all the wfr_ options here?

@@ -22,27 +22,23 @@
"""
Gap Junctions: Two neurons example
Copy link
Contributor

Choose a reason for hiding this comment

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

"Two neuron example" (no plural s)

'wfr_comm_interval': 1.0,
'wfr_tol': 0.0001,
'wfr_max_iterations': 15,
'wfr_interpolation_order': 3})
Copy link
Contributor

Choose a reason for hiding this comment

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

See above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@heplesser The wfr settings are now discussed in the general gap junction documentation ( http://nest-simulator.org/simulations-with-gap-junctions/ ). The default settings are well chosen and from my point of view there is only little reason to change these settings. Until now the parameter were (re-)set to their defaults in the examples just to demonstrate how the parameters are set. For anyone just looking at the examples it might however of course be useful to have this code lines here.

After further considerations I reintroducted the settings in one of the examples (the network example).

Copy link
Contributor

Choose a reason for hiding this comment

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

OK.

an accurate gap junction between both neurons
In order to create the `gap_junction` connection we employ the `all_to_all`
connection rule: Gap junctions are bidirectional connections, therefore we
need to connect `neuron[0]` to `neuron[1]` and `neuron[1]` to `neuron[0]`
Copy link
Contributor

Choose a reason for hiding this comment

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

Full stop or colon at end of line missing.

{'model': 'gap_junction', 'weight': 0.5})

"""
Finally we start the simulation and plot the membrane potentials of
both neurons
Copy link
Contributor

Choose a reason for hiding this comment

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

Fullstop or colon missing.

@janhahne
Copy link
Contributor Author

janhahne commented Jan 8, 2017

@heplesser Thank you for the careful look! I pushed some improvements.

@heplesser
Copy link
Contributor

Since this is just a minor documentation update, I merge without second review.

@heplesser heplesser merged commit e817ee2 into nest:master Jan 9, 2017
@janhahne janhahne deleted the improve_comments branch January 9, 2017 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants