mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Solver: Add some mage export.
This commit is contained in:
1 parent
d893db4ef7
commit
6a241f7a67
5 files changed
+163
-8
No files matched your search
@@ -93,6 +93,11 @@ class SolverLogWindow(ASubMainWindow, ListedSubWindow):
|
||||
self._alarm.start(500)
|
||||
self._output = Queue()
|
||||
|
||||
self._log(f" *** Export study {self._solver.name}", color="blue")
|
||||
self._solver.export(self._study, "/tmp/pamhyr/0/", qlog = self._output)
|
||||
|
||||
self.update()
|
||||
|
||||
self._log(f" *** Run solver {self._solver.name}", color="blue")
|
||||
self._solver.run(self._process, self._output)
|
||||
|
||||
@@ -133,7 +138,6 @@ class SolverLogWindow(ASubMainWindow, ListedSubWindow):
|
||||
self.find(QAction, "action_pause").setEnabled(False)
|
||||
self.find(QAction, "action_stop").setEnabled(False)
|
||||
|
||||
|
||||
while self._output.qsize() != 0:
|
||||
s = self._output.get()
|
||||
self._log(s)
|
||||
|
||||
Reference in new issue
Block a user