Skip to content

Commit

Permalink
Use sort_index() rather than deprecated sort() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
lebedov committed Nov 10, 2015
1 parent 7b26e42 commit 06412bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurokernel/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,7 @@ def __setitem__(self, key, value):
# data attribute:
self.__validate_index__(new_data.index)
self.data = new_data
self.data.sort(inplace=True)
self.data.sort_index(inplace=True)

# Update the `io` attributes of the pattern's interfaces:
self.interface[key[0], 'io'] = 'in'
Expand Down

0 comments on commit 06412bb

Please sign in to comment.