Skip to content

Commit

Permalink
better example in comments, no functional change
Browse files Browse the repository at this point in the history
  • Loading branch information
Burgholzer authored and Burgholzer committed May 9, 2024
1 parent a189d50 commit 29fc5f2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/test10/HSP2results/pytest10.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,18 @@ def test_h5_file_exists():
# Code to evaluate difference between runs with and without specl
# not formatted in pytest friendly fashion yet, and would require oth h5 files to exist
"""
fpath = "./test10.h5"
# running from root of HSP2 install
fpath = "./tests/test10/HSP2results/test10.h5"
dstore = pd.HDFStore(fpath)
sedtrn_r005 = read_hdf(dstore, '/RESULTS/RCHRES_R005/SEDTRN/table')
sedtrn_r005['RSED5'].mean()
print(sedtrn_r005['RSED4'].mean(), sedtrn_r005['RSED5'].mean(), sedtrn_r005['RSED6'].mean())
dstore.close()
# Grab the other
os.chdir('../../test10specl/HSP2results')
fpath = "./test10specl.h5"
fpath = "./tests/test10specl/HSP2results/test10specl.h5"
specl_dstore = pd.HDFStore(fpath)
specl_sedtrn_r005 = read_hdf(specl_dstore, '/RESULTS/RCHRES_R005/SEDTRN/table')
specl_sedtrn_r005['RSED5'].mean()
print(specl_sedtrn_r005['RSED4'].mean(), specl_sedtrn_r005['RSED5'].mean(), specl_sedtrn_r005['RSED6'].mean())
specl_dstore.close()
"""

0 comments on commit 29fc5f2

Please sign in to comment.