Skip to content

Commit

Permalink
Corrected bug in IgtMix.mass(); still using abandoned _units attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
chmarti1 committed Aug 22, 2024
1 parent daf7571 commit daef803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyromat/igtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ def mass(self):
"""
total = np.zeros(self.shape())
for subst,qty in self.items():
total += pm.units.matter(qty, subst.mw(), from_units=self._units, to_units=pm.config['unit_mass'])
total += pm.units.matter(qty, subst.mw(), from_units='kmol', to_units=pm.config['unit_mass'])
return total


Expand Down

0 comments on commit daef803

Please sign in to comment.