Skip to content

Commit

Permalink
Removed overeager error message in METexpress
Browse files Browse the repository at this point in the history
  • Loading branch information
mollybsmith-noaa committed Jul 28, 2023
1 parent 4f66de8 commit ac827b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meteor_packages/mats-common/public/python/calc_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def calculate_stat(statistic, stat_line_type, agg_method, outlier_qc_param, nump
sub_stats = np.nan
stat = 'null'
except ValueError as e:
error = "Error calculating statistic: " + str(e)
# error = "Error calculating statistic: " + str(e) --- removed, it's okay to get a nan back, we don't need the whole plot to fail
sub_stats = np.nan
stat = 'null'
return sub_stats, sub_secs, sub_levs, numpy_data, stat, error
Expand Down

0 comments on commit ac827b0

Please sign in to comment.