Skip to content

Issue543#647

Closed
AndreiMoise111 wants to merge 2 commits into
NeuralEnsemble:masterfrom
AndreiMoise111:issue543
Closed

Issue543#647
AndreiMoise111 wants to merge 2 commits into
NeuralEnsemble:masterfrom
AndreiMoise111:issue543

Conversation

@AndreiMoise111

Copy link
Copy Markdown
Contributor

The problem was that when a user was trying to print the variable times from a DCSource it didn't showed an error but an array. I changed All the variable named times by _times. I did the same thing for amplitudes. Except for these two I didn't change the name of the variable for StepCurrentSource. I also added a get_native_parameters because when the user was trying to print a variable which didn't exist, there was an NotImplementedError insted of the correct error. At last, I changed the type of the variable that was returned in _check_step_time from a list to an array.

…ror if the user wanted to print the parameter times for a DCSource for exemple. Did the same for amplitudes variable. Changed the condition if in set_native_parameters to implement those changes. Added a get_native_parameters function to print a error if the user prints a parameter that doesn't exist.
…tep_times) to change the type list to an array. Did the same for step_amplitudes
@coveralls

coveralls commented Jul 8, 2019

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.06%) to 43.578% when pulling 34d4e71 on AndreiMoise111:issue543 into 1142720 on NeuralEnsemble:master.

@apdavison

Copy link
Copy Markdown
Member

Closing this as no longer applicable.

The pyNN/brian backend this targets has since been replaced by the Brian 2 backend (pyNN/brian2), so the patch no longer applies. The substance of the change is already present in the current backend: pyNN/brian2/standardmodels/electrodes.py uses the _times/_amplitudes naming and provides a get_native_parameters() method.

Thanks for the contribution.

@apdavison apdavison closed this Jul 11, 2026
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.

3 participants