summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrenda-br2023-01-05 01:42:56 +0530
committerbrenda-br2023-01-05 01:42:56 +0530
commit76406147fef0b5ceb2d03e023794725bca88c4ee (patch)
tree0337f9333927c5db70a3f3d1f06fec7c48f1a163
parentb6c654ccdd0e401bfc4e651fe533512dba320e4c (diff)
downloadChemical-Simulator-GUI-76406147fef0b5ceb2d03e023794725bca88c4ee.tar.gz
Chemical-Simulator-GUI-76406147fef0b5ceb2d03e023794725bca88c4ee.tar.bz2
Chemical-Simulator-GUI-76406147fef0b5ceb2d03e023794725bca88c4ee.zip
Fix #23 => Binary Phase Envelope Plot Graph
-rw-r--r--Bin_Phase_env.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Bin_Phase_env.py b/Bin_Phase_env.py
index d9975fe..9a9d873 100644
--- a/Bin_Phase_env.py
+++ b/Bin_Phase_env.py
@@ -114,12 +114,15 @@ class BinPhaseEnv(QWidget,ui_dialog):
self.comp1 = self.comboBox.currentText()
self.comp2 = self.comboBox_2.currentText()
+ self.comp_1 = self.comboBox.currentText().split('(')[0]
+ self.comp_2 = self.comboBox_2.currentText().split('(')[0]
+
self.thermoPack = self.comboBox_3.currentText()
self.data.append("model Graph\n")
- self.data.append("import data = Simulator.Files.Chemsep_Database;\n")
- self.data.append("parameter data."+self.comp1+" comp1;\n")
- self.data.append("parameter data."+self.comp2+" comp2;\n")
+ self.data.append("import data = Simulator.Files.ChemsepDatabase;\n")
+ self.data.append("parameter data."+self.comp_1+" comp1;\n")
+ self.data.append("parameter data."+self.comp_2+" comp2;\n")
self.data.append("extends BinaryEnvelopes."+self.thermoPack+"(Nc = 2, data_points = "+str(data_points)+ ", comp = { comp1, comp2 }, "+self.type+" = fill( "+str(val)+", "+str(data_points)+"));\n")
self.data.append("end Graph;")