Skip to content

Commit

Permalink
Updates to test for VAL1L2 linetype with new TOTAL_DIR column
Browse files Browse the repository at this point in the history
  • Loading branch information
bikegeek committed Jun 28, 2024
1 parent df31ca1 commit dafed9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions test/test_agg_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def aggregate(parms):
agg_stat_obj.calculate_stats_and_ci()


@pytest.mark.skip('Not yet updated with new data')
def test_val1l2():
'''
Compare MET stat_analysis tool output with
Expand All @@ -65,7 +64,7 @@ def test_val1l2():
# -v 5 -out filename-for-output-file

# skip the first row of the file, it contains joblist information from stat-analysis
agg_from_met: pd.DataFrame = pd.read_csv(f"{cwd}/data/stat_analysis/met_val1l2_stat_anal.txt", sep=r'\s+',
agg_from_met: pd.DataFrame = pd.read_csv(f"{cwd}/data/stat_analysis/met_val1l2_aggregated.txt", sep=r'\s+',
skiprows=1)

# convert all the column names to lower case
Expand Down Expand Up @@ -110,7 +109,7 @@ def test_val1l2():

# clean up
output_file = parms['agg_stat_output']
cleanup(output_file)
# cleanup(output_file)
cleanup(lc_df_name)

def test_vl1l2():
Expand Down
2 changes: 1 addition & 1 deletion test/val1l2_agg_stat.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
agg_stat_input: !ENV "${TEST_DIR}/data/stat_analysis/point_stat_GRIB1_NAM_GDAS_120000L_20120409_120000V_val1l2.txt"
agg_stat_input: !ENV "${TEST_DIR}/data/point_stat/point_stat_GRIB1_NAM_GDAS_MASK_SID_120000L_20120409_120000V_val1l2.txt"
agg_stat_output: !ENV "${TEST_DIR}/calcpy_val1l2_agg.txt"
alpha: 0.05
append_to_file: null
Expand Down

0 comments on commit dafed9c

Please sign in to comment.