Skip to content

Commit

Permalink
fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Jan 15, 2024
1 parent aaa35b3 commit 418f447
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thermosteam/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def index_overlap(left_chemicals, right_chemicals, right_index):
cache = left_chemicals._index_cache
if CASs in cache:
left_index, kind = cache[CASs]
if kind:
raise RuntimeError('conflict in chemical groups and aliases between property packages')
else:
if kind == 0 or kind == 3:
return left_index, right_index
else:
raise RuntimeError('conflict in chemical groups and aliases between property packages')
else:
dct = left_chemicals._index
N = len(CASs)
Expand Down

0 comments on commit 418f447

Please sign in to comment.