Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jtwhite79 committed Jul 14, 2020
2 parents bb16bf5 + 40eb585 commit 04bac2b
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 1,534 deletions.
4 changes: 2 additions & 2 deletions benchmarks/basic_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ def ext_stdcol_test():
obs.loc[pst.nnz_obs_names,"standard_deviation"] = 7.5
pst.write(os.path.join(m_d,"pest_ext_stdcol.pst"),version=2)
pyemu.os_utils.run("{0} pest_ext_stdcol.pst".format(exe_path),cwd=m_d)
df = pd.read_csv(os.path.join(m_d,"pest_ext_stdcol.base.obs.csv"),index_col=0).loc[:,pst.nnz_obs_names]
df = pd.read_csv(os.path.join(m_d,"pest_ext_stdcol.obs+noise.csv"),index_col=0).loc[:,pst.nnz_obs_names]
d = (df.std() - obs.loc[pst.nnz_obs_names,"standard_deviation"]).apply(np.abs)
print(d)
assert d.max() < 0.1,d.max()
Expand All @@ -822,7 +822,7 @@ def ext_stdcol_test():
par.loc[pst.adj_par_names[0],"mean"] = par.loc[pst.adj_par_names[0],"parubnd"]
pst.write(os.path.join(m_d,"pest_ext_stdcol.pst"),version=2)
pyemu.os_utils.run("{0} pest_ext_stdcol.pst".format(exe_path),cwd=m_d)
df = pd.read_csv(os.path.join(m_d,"pest_ext_stdcol.base.obs.csv"),index_col=0).loc[:,pst.nnz_obs_names]
df = pd.read_csv(os.path.join(m_d,"pest_ext_stdcol.obs+noise.csv"),index_col=0).loc[:,pst.nnz_obs_names]
mn = df.min()
mx = df.max()
dmn = mn - obs.loc[pst.nnz_obs_names,"obsval"] * 0.9
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion src/libs/common/config_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define CONFIG_OS_H_


#define PESTPP_VERSION "4.3.18";
#define PESTPP_VERSION "4.3.19";

#if defined(_WIN32) || defined(_WIN64)
#define OS_WIN
Expand Down
9 changes: 5 additions & 4 deletions src/libs/pestpp_common/EnsembleSmoother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1220,19 +1220,20 @@ void IterEnsembleSmoother::initialize()
}
message(1, "saved initial parameter ensemble to ", ss.str());
message(2, "checking for denormal values in base oe");
oe.check_for_normal("base observation ensemble");
oe.check_for_normal("obs+noise observation ensemble");
ss.str("");
if (pest_scenario.get_pestpp_options().get_ies_save_binary())
{
ss << file_manager.get_base_filename() << ".base.obs.jcb";
ss << file_manager.get_base_filename() << ".obs+noise.jcb";
oe.to_binary(ss.str());
}
else
{
ss << file_manager.get_base_filename() << ".base.obs.csv";
ss << file_manager.get_base_filename() << ".obs+noise.csv";
oe.to_csv(ss.str());
}
message(1, "saved base observation ensemble (obsval+noise) to ", ss.str());
message(1, "saved obs+noise observation ensemble (obsval+noise) to ", ss.str());


if (center_on.size() > 0)
{
Expand Down
6 changes: 3 additions & 3 deletions src/utilities/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This CMake file is part of PEST++

if(Fortran_ENABLED)
add_subdirectory(inschekpp)
endif()
# if(Fortran_ENABLED)
# add_subdirectory(inschekpp)
# endif()
10 changes: 0 additions & 10 deletions src/utilities/inschekpp/CMakeLists.txt

This file was deleted.

Loading

0 comments on commit 04bac2b

Please sign in to comment.