Previous few lines could be more succinctly written as

```
indices = np.where(p.contains_points(self.xys))[0]
selected_structures = [self.dendrogram[i] for i in np.where(p.contains_points(self.xys))[0])
```