Skip to content

Commit

Permalink
refactored par and obs en access, added initial exploring results not…
Browse files Browse the repository at this point in the history
…ebook
  • Loading branch information
jtwhite79 committed Dec 26, 2024
1 parent e85cc01 commit 14c47ea
Show file tree
Hide file tree
Showing 4 changed files with 648 additions and 39 deletions.
28 changes: 17 additions & 11 deletions autotest/pst_tests_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ def results_ies_1_test():
assert df is not None

# weights
df = r.ies.weight_en
df = r.ies.weights
#print(df)
assert df is not None

Expand All @@ -938,16 +938,16 @@ def results_ies_1_test():
df = r.ies.phi_meas
assert df is not None
# noise
df = r.ies.noise_en
df = r.ies.noise
assert df is not None
# get the prior par en
df = r.ies.par_en0
df = r.ies.paren0
assert df is not None
# get the 1st iter obs en
df = r.ies.obs_ensemble1
df = r.ies.obsen1
assert df is not None
# get the combined par en across all iters
df = r.ies.par_en
df = r.ies.paren
assert df is not None
#print(df)

Expand All @@ -974,8 +974,14 @@ def results_ies_3_test():
else:
raise Exception("should have failed...")

pst = pyemu.Pst(os.path.join(m_d1, "pest.pst"))
pst.add_results([m_d1,m_d2],cases=["pest","test"])
print(pst.r0.ies.paren)
#print(pst.r0.ies.obsen)
#print(pst.r1.ies.files_loaded)
#print(pst.r1.ies.obsen)


#print(pst.r1.ies.files_loaded)

def results_ies_2_test():
import pyemu
Expand All @@ -993,7 +999,7 @@ def results_ies_2_test():
assert df is not None

# weights
df = r.ies.weight_en
df = r.ies.weights
assert df is not None

# various phi dfs
Expand All @@ -1006,16 +1012,16 @@ def results_ies_2_test():
df = r.ies.phi_meas
assert df is not None
# noise
df = r.ies.noise_en
df = r.ies.noise
assert df is not None
# get the prior par en
df = r.ies.par_en0
df = r.ies.paren0
assert df is not None
# get the 1st iter obs en
df = r.ies.obs_ensemble1
df = r.ies.obsen1
assert df is not None
# get the combined par en across all iters
df = r.ies.par_en
df = r.ies.paren
assert df is not None

def results_mou_1_test():
Expand Down
Loading

0 comments on commit 14c47ea

Please sign in to comment.