-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new utility to convert segm.npz to a dataframe of objects coord…
…inates
- Loading branch information
Showing
4 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from .. import myutils, workers, widgets, html_utils | ||
|
||
from .base import NewThreadMultipleExpBaseUtil | ||
|
||
class toObjCoordsUtil(NewThreadMultipleExpBaseUtil): | ||
def __init__( | ||
self, expPaths, app, title: str, infoText: str, | ||
progressDialogueTitle: str, parent=None): | ||
module = myutils.get_module_name(__file__) | ||
super().__init__( | ||
expPaths, app, title, module, infoText, progressDialogueTitle, | ||
parent=parent | ||
) | ||
self.expPaths = expPaths | ||
|
||
def runWorker(self): | ||
self.worker = workers.ToObjCoordsWorker(self) | ||
super().runWorker(self.worker) | ||
|
||
def showEvent(self, event): | ||
self.runWorker() | ||
|
||
def workerFinished(self, worker): | ||
super().workerFinished(worker) | ||
txt = 'Converting to object coordinates completed.' | ||
self.logger.info(txt) | ||
msg = widgets.myMessageBox(wrapText=False, showCentered=False) | ||
msg.information(self, 'Process completed', html_utils.paragraph(txt)) | ||
self.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters