Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 0 additions & 5 deletions autotest/test_model_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
@requires_exe("mf6")
def test_structured_model_splitter(function_tmpdir):
sim_path = get_example_data_path() / "mf6-freyberg"

from pathlib import Path

function_tmpdir = Path("./temp")

split_path = function_tmpdir / "split_model"

sim = MFSimulation.load(sim_ws=sim_path)
Expand Down
6 changes: 3 additions & 3 deletions flopy/discretization/modeltime.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ def get_datetime(self, kper, kstp=None, start=False):

return self._datetime_dict[(kper, kstp)]

def intersect(self, datetime_obj=None, totim=None, forgrive=False):
def intersect(self, datetime_obj=None, totim=None, forgive=False):
"""
Method to intersect a datetime or totim value with the model and
get the model stress-period and time-step associated with that
Expand Down Expand Up @@ -643,8 +643,8 @@ def intersect(self, datetime_obj=None, totim=None, forgrive=False):
)

if totim > self.totim[-1] or totim <= 0:
if forgrive:
return None
if forgive:
return None, None
if datetime_obj is None:
msg = (
f"supplied totim {totim} is outside of model's "
Expand Down
Loading