Closed belevtsoff closed 11 years ago
I remeber we discussed it already. Is it fixed?
Well, I'm not sure. I'd say no, cuz the issue us still opened, but I'll check anyway...
Ok, I'll stick with the suggested solution. It's not too bad cuz self.labels is meant to be read from, and self.cluster_labels is supposed to be written to
This happens because the method
delete_cells
tries to write toself.cluster_labels
attribute which is None at that time.A workaround solution would be to substitute:
self.cluster_labels[self.cluster_labels == cell_id] = self.trash_label
withself.cluster_labels[self.labels == cell_id] = self.trash_label
But this problem occurs with other methods and possibly even in other components. @btel can you think of more generic solution? e.g. making
labels
property writable