mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
more debug
This commit is contained in:
1 parent
440996b636
commit
4e888d9db0
3 files changed
+9
-1
No files matched your search
@@ -56,6 +56,10 @@ class Results(object):
|
|||||||
def set(self, key, value):
|
def set(self, key, value):
|
||||||
self._meta_data[key] = value
|
self._meta_data[key] = value
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_valid(self):
|
||||||
|
return ("timestamps" in self._meta_data)
|
||||||
|
|
||||||
def get(self, key):
|
def get(self, key):
|
||||||
return self._meta_data[key]
|
return self._meta_data[key]
|
||||||
|
|
||||||
|
|||||||
@@ -301,7 +301,7 @@ class InitialConditionsWindow(PamhyrWindow):
|
|||||||
)
|
)
|
||||||
dlg.exec_()
|
dlg.exec_()
|
||||||
results = self._tmp_results
|
results = self._tmp_results
|
||||||
if "timestamps" in results._meta_data:
|
if results.is_valid:
|
||||||
self._import_from_results(results)
|
self._import_from_results(results)
|
||||||
|
|
||||||
def _import_from_results(self, results):
|
def _import_from_results(self, results):
|
||||||
|
|||||||
@@ -1432,6 +1432,10 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
|||||||
if results is None:
|
if results is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# results does not have values, for example if geometry missmatch
|
||||||
|
if not results.is_valid:
|
||||||
|
return
|
||||||
|
|
||||||
# Windows already opened
|
# Windows already opened
|
||||||
if self.sub_window_exists(
|
if self.sub_window_exists(
|
||||||
ResultsWindow,
|
ResultsWindow,
|
||||||
|
|||||||
Reference in new issue
Block a user