Solver: Add some mage export.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-06-20 17:33:56 +02:00
1 parent d893db4ef7
commit 6a241f7a67
5 files changed
+163 -8

No files matched your search

+5 -1
View File
@@ -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)