Closed philipstarkey closed 6 years ago
Original comment by Jan Werkmann (Bitbucket: PhyNerd, GitHub: PhyNerd).
Found a solution:
If we block all signals during update_row
things run smoothly.
So I added this to the top of update_row
:
#!python
self._model.blockSignals(True)
And this to the bottom of update_row
:
#!python
self._model.blockSignals(False)
self._model.layoutChanged.emit()
I'm not sure if there are any downsides to this so I'll test a bit before creating a pull request.
Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).
Fixed by pull request #37
Original report (archived issue) by Jan Werkmann (Bitbucket: PhyNerd, GitHub: PhyNerd).
If there are more than a few hundred (200 should be enough) shots loaded in lyse and one selects them all lyse will freeze or dramatically slow down when new shots come in during this time. This very commonly happens to us as we commonly forget to clear shots out of lyse inbetween sequences and when we want to delete the old ones lyse becomes unusable.