From 1f48d6fe50bd4a7a892d385ff5c709d2cb9b3e44 Mon Sep 17 00:00:00 2001 From: Bing Gong <b.gong@fz-juelich.de> Date: Mon, 13 Sep 2021 11:50:31 +0200 Subject: [PATCH] fix bug in plot_ambs_forecast.py --- video_prediction_tools/postprocess/plot_ambs_forecast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video_prediction_tools/postprocess/plot_ambs_forecast.py b/video_prediction_tools/postprocess/plot_ambs_forecast.py index 83b1c8ff..1f7da969 100644 --- a/video_prediction_tools/postprocess/plot_ambs_forecast.py +++ b/video_prediction_tools/postprocess/plot_ambs_forecast.py @@ -123,7 +123,7 @@ def main(args): filename = args.filename fhh = args.forecast_hour - if os.path.isfile(filename): + if not os.path.isfile(filename): raise FileNotFoundError("Could not find the indictaed netCDF-file '{0}'".format(filename)) with xr.open_dataset(filename) as dfile: -- GitLab