From e15654002046cea4371b5dcc047db6b0ce31abaa Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Thu, 18 Jun 2026 05:30:56 -0700 Subject: [PATCH] fix: skip interface model and connection variables --- modflowapi/extensions/apisimulation.py | 30 +++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/modflowapi/extensions/apisimulation.py b/modflowapi/extensions/apisimulation.py index 268af23..f9c98f5 100644 --- a/modflowapi/extensions/apisimulation.py +++ b/modflowapi/extensions/apisimulation.py @@ -283,9 +283,25 @@ def load(mf6): id_var_addr = mf6.get_var_address("ID", name) if name.startswith("SLN"): continue - elif name.startswith("GWTIM") or name.startswith("GWFIM") or name.startswith("GWEIM"): + elif ( + name.startswith("GWFIM") + or name.startswith("GWTIM") + or name.startswith("GWEIM") + or name.startswith("PRTIM") + or name.startswith("CHFIM") + or name.startswith("OLFIM") + or name.startswith("SWFIM") + ): continue - elif name.startswith("GWFCON") or name.startswith("GWTCON") or name.startswith("GWECON"): + elif ( + name.startswith("GWFCON") + or name.startswith("GWTCON") + or name.startswith("GWECON") + or name.startswith("PRTCON") + or name.startswith("CHFCON") + or name.startswith("OLFCON") + or name.startswith("SWFCON") + ): continue if id_var_addr not in variables: continue @@ -305,7 +321,15 @@ def load(mf6): id_var_addr = mf6.get_var_address("ID", name) if name.lower() in models or name == "TDIS": continue - if name.startswith("GWTIM") or name.startswith("GWFIM") or name.startswith("GWEIM"): + if ( + name.startswith("GWFIM") + or name.startswith("GWTIM") + or name.startswith("GWEIM") + or name.startswith("PRTIM") + or name.startswith("CHFIM") + or name.startswith("OLFIM") + or name.startswith("SWFIM") + ): continue if id_var_addr not in variables: continue