From f0e67d0c6b1047930d74026e7e93c7a6e751d8c9 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Mon, 13 Nov 2023 20:26:13 -0500 Subject: [PATCH] refactor(msfsr2): write sfr_botm_conflicts.chk to model workspace --- flopy/modflow/mfsfr2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flopy/modflow/mfsfr2.py b/flopy/modflow/mfsfr2.py index c5035b9c48..26a7a9a24d 100644 --- a/flopy/modflow/mfsfr2.py +++ b/flopy/modflow/mfsfr2.py @@ -9,7 +9,7 @@ from numpy.lib import recfunctions from ..pakbase import Package -from ..utils import MfList, import_optional_dependency +from ..utils import MfList from ..utils.flopy_io import line_parse from ..utils.optionblock import OptionBlock from ..utils.recarray_utils import create_empty_recarray @@ -1175,7 +1175,7 @@ def assign_layers(self, adjust_botms=False, pad=1.0): ) header += "\n" - with open(logfile, "w") as log: + with open(os.path.join(self.parent.model_ws, logfile), "w") as log: log.write(header) a = np.array(l).transpose() for line in a: