From 0f159daa012c0524db55dfe390c28677f4dca01c Mon Sep 17 00:00:00 2001 From: Joshua Larsen Date: Tue, 8 Aug 2023 09:09:45 -0700 Subject: [PATCH] fix _naux check --- modflowapi/extensions/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modflowapi/extensions/data.py b/modflowapi/extensions/data.py index 5079262..8a5f8b3 100644 --- a/modflowapi/extensions/data.py +++ b/modflowapi/extensions/data.py @@ -108,7 +108,7 @@ def _ptr_to_recarray(self): return recarray = np.recarray((self._nbound[0],), self._dtype) for name, ptr in self._ptrs.items(): - if name == "auxvar" and self._naux == 0: + if name == "auxvar" and self._naux[0] == 0: continue values = np.copy(ptr) if name in self._boundvars: