From 75be7f4a162758d5aa17ff36d1b1ad5fd3a6d3f6 Mon Sep 17 00:00:00 2001 From: "Michael Ou@SSPA" Date: Thu, 21 Dec 2023 18:35:46 -0500 Subject: [PATCH] fixBug storing correct package names for CellBudgetFile the package name is stored as `paknam2`. `paknam` store the model name. --- flopy/utils/binaryfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flopy/utils/binaryfile.py b/flopy/utils/binaryfile.py index 8ac1416ae4..1db79cc086 100644 --- a/flopy/utils/binaryfile.py +++ b/flopy/utils/binaryfile.py @@ -1218,8 +1218,8 @@ def _build_index(self): raise BudgetIndexError("Improper precision") self.textlist.append(header["text"]) self.imethlist.append(header["imeth"]) - if header["paknam"] not in self.paknamlist: - self.paknamlist.append(header["paknam"]) + if header["paknam2"] not in self.paknamlist: + self.paknamlist.append(header["paknam2"]) ipos = self.file.tell() if self.verbose: