Skip to content

Commit

Permalink
Merge pull request #313 from jlmaurer/fix_levels
Browse files Browse the repository at this point in the history
Fix levels
  • Loading branch information
jlmaurer authored Jul 15, 2021
2 parents 3dca5aa + c0ed544 commit 66de881
Show file tree
Hide file tree
Showing 13 changed files with 366 additions and 451 deletions.
Binary file modified test/scenario_1/HRES/hydro.envi
Binary file not shown.
5 changes: 5 additions & 0 deletions test/scenario_1/HRES/hydro.hdr
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ENVI
description = {
/Users/jlmd9g/software/RAiDER-1/test/scenario_1/HRES/t_hydro.envi}
samples = 15
lines = 11
bands = 1
Expand All @@ -7,3 +9,6 @@ file type = ENVI Standard
data type = 4
interleave = bsq
byte order = 0
band names = {
Band 1}
data ignore value = 0
Binary file modified test/scenario_1/HRES/wet.envi
Binary file not shown.
5 changes: 5 additions & 0 deletions test/scenario_1/HRES/wet.hdr
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ENVI
description = {
/Users/jlmd9g/software/RAiDER-1/test/scenario_1/HRES/t_wet.envi}
samples = 15
lines = 11
bands = 1
Expand All @@ -7,3 +9,6 @@ file type = ENVI Standard
data type = 4
interleave = bsq
byte order = 0
band names = {
Band 1}
data ignore value = 0
16 changes: 3 additions & 13 deletions test/test_scenario_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
_RTOL = 1e-4


@pytest.mark.timeout(600)
@pytest.mark.skip(reason='Skipping for now')
def test_tropo_delay_ERAI(tmp_path):
'''
Scenario:
Expand Down Expand Up @@ -149,15 +149,5 @@ def core_test_tropo_delay(tmp_path, modelName):
)

# get the true delay from the weather model
assert np.allclose(
wet,
true_wet,
equal_nan=True,
rtol=_RTOL
)
assert np.allclose(
hydro,
true_hydro,
equal_nan=True,
rtol=_RTOL
)
assert np.nanmax(np.abs((wet - true_wet) / true_wet )) < _RTOL
assert np.nanmax(np.abs((hydro - true_hydro) / true_hydro )) < _RTOL
Loading

0 comments on commit 66de881

Please sign in to comment.