From ce424c975c45e3364f3682bbc123723b929deffd Mon Sep 17 00:00:00 2001 From: Ingmar Schoegl Date: Sat, 2 Nov 2019 00:26:24 -0500 Subject: [PATCH] [Thermo] fix restoring of default PureFluid state --- interfaces/cython/cantera/composite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/cython/cantera/composite.py b/interfaces/cython/cantera/composite.py index 1ac6d93e83a..04f81cfee50 100644 --- a/interfaces/cython/cantera/composite.py +++ b/interfaces/cython/cantera/composite.py @@ -690,8 +690,8 @@ def restore_data(self, data, labels): '{}'.format(incompatible)) if mode == '': # concentration specifier ('X' or 'Y') is not used - states = {v.replace('X','').replace('Y','') - for v in states} + states = [s for s in states + if all([v not in s for v in {'X', 'Y'}])] # determine suitable thermo properties for reconstruction basis = 'mass' if self.basis == 'mass' else 'mole'