pypest / pypestutils

python-wrapped PEST utilities #winning
The Unlicense
10 stars 5 forks source link

mod2obs_mf6 problem with depvar_name #28

Open reneangermeyer opened 2 months ago

reneangermeyer commented 2 months ago

Hi, im using helpers.mod2obs_mf6 to get observation data from a "ucn" binary file (transport model). My depvar_name is "CONCENTRATION", but then i get the error

"PestUtilsLibError: No dependent variable arrays characterized by text "head" were found in file La_Brea_Template\La_Brea_gwt.ucn."

i searched into the function and the variable "depvar_name" is not used in the code, instead there is a "head" string where i think it should be the variable.

" all_results = lib.interp_from_mf6_depvar_file(depvar_fname,fac_file,"binary",depvar_info["ntime"],"head",interp_thresh,True, no_interp_val,usitedf.shape[0]) "

is this an error or im doing something wrong? Thanks in advance

jtwhite79 commented 2 months ago

this is bug. Ive got a patch for it testing now - its essential fixing that line you pointed to...