Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions phreeqpython/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def forget(self):
""" remove this solution from VIPhreeqc memory """
self.pp.remove_solutions([self.number])

def kinetics(self, element, rate_function, time, m0=0, args=()):
def kinetics(self, element, rate_function, time, m0=0, args=(), unit="mmol"):

def calc_rate(y, t, m0, *args):
temp = self.copy()
Expand All @@ -154,7 +154,7 @@ def calc_rate(y, t, m0, *args):

for i in range(len(time)):
t = time[i]
self.add(element, y[i])
self.add(element, y[i], unit)
yield(t, self)

# Magic functions
Expand Down