Skip to content

Commit

Permalink
Merge pull request #12 from ianhi/ianhi-patch-1
Browse files Browse the repository at this point in the history
fix set_positions
  • Loading branch information
ianhi authored Mar 4, 2022
2 parents ddb7c88 + 268b76f commit 29c8cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpl_point_clicker/_clicker.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def set_positions(self, positions):
if k not in self._classes:
raise ValueError(f"class {k} is not in {self._classes}")

for k, v in positions.keys():
for k, v in positions.items():
self._positions[k] = list(v)
self._observers.process('pos-set', self.get_positions())

Expand Down

0 comments on commit 29c8cf2

Please sign in to comment.