Skip to content

Commit

Permalink
fix in pp_space action
Browse files Browse the repository at this point in the history
  • Loading branch information
jtwhite79 committed Oct 21, 2024
1 parent 21a85c3 commit 0a5fbe0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions autotest/pst_from_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4119,6 +4119,10 @@ def mf6_subdir_test(tmp_path):
except:
return

import sys
sys.path.insert(0, os.path.join("..", "..", "pypestutils"))
import pypestutils as ppu

org_model_ws = os.path.join('..', 'examples', 'freyberg_mf6')
sd = "sub_dir"
tmp_model_ws = setup_tmp(org_model_ws, tmp_path, sub=sd)
Expand Down Expand Up @@ -4358,11 +4362,12 @@ def mf6_subdir_test(tmp_path):
rebuild_pst=True)
#
# # test par mults are working
bd = os.getcwd()
os.chdir(pf.new_d)
pst.write_input_files()
pyemu.helpers.apply_list_and_array_pars(
arr_par_file="mult2model_info.csv",chunk_len=1)
os.chdir(tmp_path)
os.chdir(bd)
#
# cov = pf.build_prior(fmt="none").to_dataframe()
# twel_pars = [p for p in pst.par_names if "twel_mlt" in p]
Expand Down Expand Up @@ -6056,7 +6061,8 @@ def mf6_freyberg_ppu_hyperpars_thresh_invest(tmp_path):


if __name__ == "__main__":
mf6_freyberg_pp_locs_test('.')
#mf6_freyberg_pp_locs_test('.')
mf6_subdir_test(".")
#mf6_freyberg_ppu_hyperpars_invest(".")
#mf6_freyberg_ppu_hyperpars_thresh_invest(".")
#mf6_freyberg_thresh_test(".")
Expand Down
2 changes: 1 addition & 1 deletion pyemu/utils/pst_from.py
Original file line number Diff line number Diff line change
Expand Up @@ -2442,7 +2442,7 @@ def add_parameters(
pp_locs = None
if "pp_space" not in pp_options or pp_options["pp_space"] is None: # default spacing if not passed
self.logger.warn("pp_space is None, using 10...\n")
pp_options["pp_space"]
pp_options["pp_space"] = 10
else:
if not pp_options["use_pp_zones"] and (isinstance(pp_options["pp_space"], (int, np.integer))):
# if not using pp zones will set up pp for just one
Expand Down

0 comments on commit 0a5fbe0

Please sign in to comment.