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

Brian not raising error when trying to access parameter "times" for DCSource #543

Open
appukuttan-shailesh opened this issue Nov 28, 2017 · 1 comment
Labels
Milestone

Comments

@appukuttan-shailesh
Copy link
Contributor

For this code:

steady = DCSource(amplitude=0.5, start=10.0, stop=20.0)
print len(steady.times)  

Brian is printing output as 3.

NEURON and NEST rightly give:
pyNN.errors.NonExistentParameterError: times (valid parameters for DCSource are: amplitude, start, stop)

@appukuttan-shailesh
Copy link
Contributor Author

Problem seems to be linked to the absence of a get_native_parameters() method for Brian.
There also seems to be some differences with the way get_native_names() (in standardmodels/_init_.py`) works for Brian versus the rest.

@legouee legouee self-assigned this Dec 4, 2017
@apdavison apdavison added this to the 0.9.3 milestone Jan 4, 2018
@apdavison apdavison modified the milestones: 0.9.3, 0.9.4 Dec 3, 2018
@apdavison apdavison modified the milestones: 0.9.4, 0.9.5 Mar 14, 2019
@apdavison apdavison modified the milestones: 0.9.5, 0.9.6 Jan 8, 2020
@apdavison apdavison modified the milestones: 0.9.6, 0.10.0 Nov 9, 2021
@apdavison apdavison modified the milestones: 0.10.0, 0.10.1 Mar 21, 2022
@apdavison apdavison modified the milestones: 0.10.1, 0.10.2 Oct 13, 2022
@apdavison apdavison modified the milestones: 0.10.2, 0.11.0 Feb 5, 2023
@apdavison apdavison modified the milestones: 0.11.0, 0.13.0 Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants