Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
joyxyz1994 committed Nov 27, 2024
1 parent b714a90 commit 38a791b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qsdsan/_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,8 +1041,8 @@ def load_from_file(cls, path='', components=None, data=None,
stoichio = proc[cmp_IDs]
if data.columns[-1] in cmp_IDs: rate_eq = None
else:
if pd.isna(proc[-1]): rate_eq = None
else: rate_eq = proc[-1]
if pd.isna(proc.iloc[-1]): rate_eq = None
else: rate_eq = proc.iloc[-1]
stoichio = stoichio[-pd.isna(stoichio)].to_dict()
ref = None
for k,v in stoichio.items():
Expand Down

0 comments on commit 38a791b

Please sign in to comment.