Skip to content

Commit

Permalink
Fix read_spikes gid validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rythorpe committed May 5, 2020
1 parent 9d81967 commit ffea3a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hnn_core/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ def read_spikes(self, fname, append_trial=True):
for gid_type in np.unique(gid_types):
gid_type_max = np.max(spikegids[gid_types == gid_type])
gid_type_min = np.min(spikegids[gid_types == gid_type])
assert (gid_type_max in self.gid_dict.get(gid_type, False) and
gid_type_min in self.gid_dict.get(gid_type, False)), \
assert (gid_type_max in self.gid_dict.get(gid_type, [None]) and
gid_type_min in self.gid_dict.get(gid_type, [None])), \
"Error: gids in %s are incompatible with the current \
network" % (fname,)

Expand Down

0 comments on commit ffea3a9

Please sign in to comment.