Skip to content

Commit

Permalink
Solution: deprecation warning for get_mole_fraction
Browse files Browse the repository at this point in the history
  • Loading branch information
rkingsbury committed Jul 25, 2023
1 parent 2162c82 commit 1d85f1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pyEQL/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,9 @@ def get_total_moles_solute(self):
tot_mol += self.components[item].get_moles()
return tot_mol

@deprecated(
message="get_mole_fraction() will be removed in the next release. Use get_amount() with units='fraction' instead."
)
def get_mole_fraction(self, solute):
"""
Return the mole fraction of 'solute' in the solution
Expand Down

0 comments on commit 1d85f1f

Please sign in to comment.