summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpravindalve2021-04-18 21:13:09 +0530
committerpravindalve2021-04-18 21:13:09 +0530
commit18c252df8431ddb9681efaf26352bbb6ed08b1fb (patch)
tree03a7f1fb0796972ce60dcb260f1d10e09163931d
parentc6321d3dbdd5cebf66fe8470d9c0a58ed63e4721 (diff)
downloadChemical-Simulator-GUI-18c252df8431ddb9681efaf26352bbb6ed08b1fb.tar.gz
Chemical-Simulator-GUI-18c252df8431ddb9681efaf26352bbb6ed08b1fb.tar.bz2
Chemical-Simulator-GUI-18c252df8431ddb9681efaf26352bbb6ed08b1fb.zip
Fixes for issue #15
-rw-r--r--Undo.datbin56752 -> 27727 bytes
-rw-r--r--UnitOperations.py4
2 files changed, 2 insertions, 2 deletions
diff --git a/Undo.dat b/Undo.dat
index bf52137..bc64b22 100644
--- a/Undo.dat
+++ b/Undo.dat
Binary files differ
diff --git a/UnitOperations.py b/UnitOperations.py
index ddac8b1..132990a 100644
--- a/UnitOperations.py
+++ b/UnitOperations.py
@@ -512,10 +512,10 @@ class Flash(UnitOperation):
def OM_Flowsheet_Equation(self):
self.OM_data_eqn = ''
- self.OM_data_eqn += ('connect(' + self.name + '.In,' + self.input_stms[0].name + '.Out);\n')
+ self.OM_data_eqn += ('connect(' + self.name + '.In,' + self.input_stms[1].name + '.Out);\n')
strcount = 1
- for strm in self.output_stms:
+ for strm in self.output_stms.values():
self.OM_data_eqn += ('connect(' + strm.name + '.In,' + self.name + '.Out' + str(strcount) + ');\n')
strcount += 1