summaryrefslogtreecommitdiff
path: root/container.py
diff options
context:
space:
mode:
authorSaurabhAgarwala2019-12-16 07:58:03 +0530
committerSaurabhAgarwala2019-12-16 07:58:03 +0530
commit68e33f34e454c6cea16db04ff7b1a73a9c670de1 (patch)
treeceb14ba6b06942e1998f6fdc0e9dd427945bd286 /container.py
parentd77a48ced21b2c5f8293148379f061897c50d4f4 (diff)
downloadChemical-Simulator-GUI-68e33f34e454c6cea16db04ff7b1a73a9c670de1.tar.gz
Chemical-Simulator-GUI-68e33f34e454c6cea16db04ff7b1a73a9c670de1.tar.bz2
Chemical-Simulator-GUI-68e33f34e454c6cea16db04ff7b1a73a9c670de1.zip
Added normailizing feature, and enhanced readability
Diffstat (limited to 'container.py')
-rw-r--r--container.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/container.py b/container.py
index 91d4833..89fb897 100644
--- a/container.py
+++ b/container.py
@@ -30,6 +30,7 @@ class Container():
def updateConn(self,key,value):
self.conn[key].append(value)
self.msg.append("<span style=\"color:blue\">["+str(self.currentTime())+"]<b> "+key.name+" </b> output is connected to input of<b> "+value.name +" </b></span>")
+
def addUnitOp(self,obj):
if(obj in self.unitOp):
pass
@@ -41,6 +42,7 @@ class Container():
for i in self.unitOp:
if(i.name==name):
return i
+
def addCompounds(self,comp):
self.compounds = comp