summaryrefslogtreecommitdiff
path: root/mainApp.py
diff options
context:
space:
mode:
Diffstat (limited to 'mainApp.py')
-rw-r--r--mainApp.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/mainApp.py b/mainApp.py
index 2458ce7..1430960 100644
--- a/mainApp.py
+++ b/mainApp.py
@@ -310,9 +310,8 @@ class MainApp(QMainWindow,ui):
for i in self.container.unit_operations:
data.append(i)
i.saved = True
- print(i.pos)
data.append(compound_selected)
- print(data)
+ data.append(self.container.result)
file_format = 'sim'
initial_path = QDir.currentPath() + 'untitled.' + file_format
@@ -341,14 +340,16 @@ class MainApp(QMainWindow,ui):
with open(file_name, 'rb') as f:
obj = pickle.load(f)
- print(obj)
+ temp_result = obj[-1]
+ obj.pop()
compound_selected = obj[-1]
obj.pop()
- print(compound_selected)
self.comp.set_compounds(compound_selected)
for i in compound_selected:
self.comp.compound_selection(self.comp, i)
self.container.graphics.load_canvas(obj, self.container)
+ self.container.result = temp_result
+ DockWidget.show_result(dock_widget_lst)
except Exception as e: