Skip to content

Commit

Permalink
Merge pull request #1352 from brian-team/fix_#1330
Browse files Browse the repository at this point in the history
Reapply a change from commit 125e591 which got lost in a merge
  • Loading branch information
mstimberg committed Sep 27, 2021
2 parents cc90125 + 7fbecf7 commit d6e3944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brian2/devices/cpp_standalone/device.py
Expand Up @@ -1241,7 +1241,7 @@ def build(self, directory='output',
self.write_static_arrays(directory)

# Check that all names are globally unique
names = [obj.name for net in self.networks for obj in net.objects]
names = [obj.name for net in self.networks for obj in net.sorted_objects]
non_unique_names = [name for name, count in Counter(names).items()
if count > 1]
if len(non_unique_names):
Expand Down

0 comments on commit d6e3944

Please sign in to comment.