GeometryIndexed.composite() was a bit overenthusiastic during reindexing

This commit is contained in:
Laura Klünder 2017-11-19 14:06:08 +01:00
parent e51e00c63b
commit 26a27bed09

View file

@ -285,10 +285,11 @@ class MapHistory(GeometryIndexed):
new_updates = sorted(set(self_update_i.keys()) | set(other_update_i.keys()))
# reindex according to merged update list
self_data = self.data.copy()
other_data = other.data.copy()
for i, update in enumerate(new_updates):
if update in self_update_i:
self.data[self.data == self_update_i[update]] = i
self.data[self_data == self_update_i[update]] = i
if update in other_update_i:
other_data[other_data == other_update_i[update]] = i