-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hi,
I am working with flopy package to load an existing modflow model using this code : first = flopy.modflow.Modflow.load(). This code runs successfully but when it comes to loading Flowb package I get this error:
881 else:
882 if "check" in package_load_args:
--> 883 item.package.load(
884 item.filehandle,
885 ml,
886 ext_unit_dict=ext_unit_dict,
887 check=False,
888 )
889 else:
890 item.package.load(
891 item.filehandle,
892 ml,
893 ext_unit_dict=ext_unit_dict,
894 )
507 namefile = os.path.join(model.model_ws, model.namefile)
508 ext_unit_dict = parsenamefile(namefile, model.mfnam_packages)
--> 510 flowtype, ftype = _get_ftype_from_filename(f.name, ext_unit_dict)
512 # set package unit number
513 unitnumber = None
601 raise AssertionError(msg)
603 flowtype_dict = {
604 "CHOB": "CHD",
605 "GOBO": "GHB",
606 "DROB": "DRN",
607 "RVOB": "RIV",
608 }
--> 609 flowtype = flowtype_dict[ftype]
611 return flowtype, ftype
KeyError: 'GBOB'
Could you please help me in this regard? How should I solve this problem?
Thanks in advance for your answer.