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

[MRG] Allow multiple objects with the same name at creation time #529

Merged
merged 1 commit into from
Aug 5, 2015

Conversation

mstimberg
Copy link
Member

For wildcard names, the same mechanism as before is used but explicitly given names are not checked for uniqueness at creation time. Instead, Network.before_run checks that all names within the network are unique. In addition, CPPStandaloneDevice.build checks that names are globally unique. Closes #216

This should be particularly useful in interactive consoles and ipython notebooks whenever explicit names for objects are used. Should also make @owenmackwood happy.

For wildcard names, the same mechanism as before is used but explicitly given names are not checked for uniqueness at creation time. Instead, `Network.before_run` checks that all names within the network are unique. In addition, `CPPStandaloneDevice.build` checks that names are globally unique. Closes #216
@thesamovar
Copy link
Member

Looks great - happy for it to be merged when the tests pass.

mstimberg added a commit that referenced this pull request Aug 5, 2015
Allow multiple objects with the same name at creation time
@mstimberg mstimberg merged commit 146ef5d into master Aug 5, 2015
@mstimberg mstimberg deleted the less_strict_names branch August 5, 2015 07:54
@owenmackwood
Copy link

I'm having problems with this, do you prefer discussion in brian-development rather than here?

@mstimberg
Copy link
Member Author

No I think it's fine to discuss it here if it is specifically about the change in this PR. If it is something that would be easier to sort out interactively, then you could also drop into our fancy (and more or less unused) chat: https://gitter.im/brian-team/brian2 (I'm off for lunch soon, though :) )

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