Skip to content

Commit

Permalink
[Thermo] fix restoring of default PureFluid state
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingmar Schoegl committed Nov 2, 2019
1 parent 284357f commit ce424c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interfaces/cython/cantera/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit ce424c9

Please sign in to comment.