properly close HDF5 filles and percussions for opening. - #1237
properly close HDF5 filles and percussions for opening.#1237sergey-yaroslavtsev wants to merge 6 commits into
Conversation
| """ | ||
| sigFileUpdated = qt.pyqtSignal(object) | ||
| sigFileAppended = qt.pyqtSignal(object) | ||
| sigReadError = qt.pyqtSignal(object) |
|
For me it is not clear if this "closing mechanism" is enough, it defiantly will not harm but is it sufficient? |
It should be. |
Sorry i meant about closing |
Those two are not related as far as I can tell. As for the non-blocking message box: this is the first time we introduce this pattern. Probably good to make a helper? def non_blocking_user_warning(...)
msg = qt.QMessageBox(self)
msg.setIcon(qt.QMessageBox.Warning)
msg.setWindowTitle("...")
msg.setText("...")
msg.setInformativeText("...")
msg.setAttribute(qt.Qt.WA_DeleteOnClose)
msg.open() |
e81dd76 to
4422c37
Compare
|
rebased add short comments about Fail message appears on I think fail should live in let me know if i missed smthg. |
|
UPDATED
This one I tried to mimic (corruption of a single dataset) and it seems that there is no problem.
|
| if index is not None and index.isValid(): | ||
| self.hdf5Widget.collapse(index) | ||
| # A later failed expansion should warn again | ||
| if hasattr(model, "_readErrorReported"): |
There was a problem hiding this comment.
Why wouldn't it have model._readErrorReported. Instead of setting a private variable, perhaps better add a public method model.allowErrorDialog().
There was a problem hiding this comment.
Public method added
I don't understand the descriptions. Code LGTM. |
|
Two issues I refer seems to behave OK. Anyway now the refresh mechanism should help if smthg it broken during reading at different place (before |
If user try to open hdf5 fille during fast scan it crashes.
I could not test it (no simulation of fast scan exist), so please check it carefully...
Error