Skip to content

Commit

Permalink
Fix default value for start time when creating fractions
Browse files Browse the repository at this point in the history
  • Loading branch information
schmoelder committed Oct 2, 2024
1 parent 0794a23 commit 36adbeb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CADETProcess/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ def integral(self, start=None, end=None):
Mass of all components in the fraction
"""
if start is None:
start = self.time[0]

if end is None:
end = self.cycle_time

Expand All @@ -468,6 +471,12 @@ def create_fraction(self, start=None, end=None):
Fraction
"""
if start is None:
start = self.time[0]

if end is None:
end = self.cycle_time

from CADETProcess.fractionation import Fraction
mass = self.fraction_mass(start, end)
volume = self.fraction_volume(start, end)
Expand All @@ -490,6 +499,9 @@ def fraction_mass(self, start=None, end=None):
Mass of all components in the fraction
"""
if start is None:
start = self.time[0]

if end is None:
end = self.cycle_time

Expand Down Expand Up @@ -529,6 +541,9 @@ def fraction_volume(self, start=None, end=None):
Volume of the fraction
"""
if start is None:
start = self.time[0]

if end is None:
end = self.cycle_time

Expand Down

0 comments on commit 36adbeb

Please sign in to comment.