From a1a966934198e67c3a7bcc8236ed51503ae48a04 Mon Sep 17 00:00:00 2001 From: pravindalve Date: Thu, 3 Dec 2020 21:25:50 +0530 Subject: Fixes for reloading saving file --- UnitOperations.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'UnitOperations.py') diff --git a/UnitOperations.py b/UnitOperations.py index 410cdd1..08a871d 100644 --- a/UnitOperations.py +++ b/UnitOperations.py @@ -48,7 +48,6 @@ class UnitOperation(): for k,v in params.items(): if k == 'Thermo Package': self.thermo_package = v - print('haha') elif k != self.mode: self.k = v self.variables[k]['value'] = v @@ -152,7 +151,7 @@ class UnitOperation(): self.OM_data_eqn += ('connect(' + self.name + '.Out,' + self.output_stms[0].name + '.In);\n') if self.mode: - self.OM_data_eqn += (self.name + '.' + self.mode + '=' + self.mode_val + ';\n') + self.OM_data_eqn += (self.name + '.' + self.mode + '=' + str(self.mode_val) + ';\n') return self.OM_data_eqn -- cgit