Skip to content

Commit

Permalink
Merge pull request #795 from apdavison/issue790
Browse files Browse the repository at this point in the history
Fix for #790
  • Loading branch information
apdavison authored Feb 21, 2024
2 parents 6447b70 + 5c1878c commit 75809a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyNN/recording/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def filter_by_variables(segment, variables):
return segment
else:
new_segment = copy(segment) # shallow copy
if Variable(name='spikes', location=None) not in variables:
if Variable(name='spikes', location=None, label=None) not in variables:
new_segment.spiketrains = []
new_segment.analogsignals = [sig for sig in segment.analogsignals if sig.name in variables]
# also need to handle Units, RecordingChannels
Expand Down

0 comments on commit 75809a5

Please sign in to comment.