Skip to content

Commit

Permalink
fix bug with copy flow with different phase letter case
Browse files Browse the repository at this point in the history
  • Loading branch information
cortespea committed Dec 15, 2023
1 parent f9efa0b commit 32b521b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion thermosteam/_phase.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ def __call__(self, phase):
try:
return self._index[phase]
except:
raise UndefinedPhase(phase)
if phase.isupper():
phase = phase.lower()
else:
phase = phase.upper()
try:
return self._index[phase]
except:
raise UndefinedPhase(phase)

@property
def phases(self):
Expand Down

0 comments on commit 32b521b

Please sign in to comment.