From c559ce80abf045f426a18b43826daca7dc1d341a Mon Sep 17 00:00:00 2001 From: Alan De Smet <alan.desmet@ssec.wisc.edu> Date: Fri, 6 Aug 2021 16:40:08 -0500 Subject: [PATCH] Briefer descriptions for GFS FileSets --- example/aitf/ancil.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/aitf/ancil.py b/example/aitf/ancil.py index 66c6e47..c707cc4 100644 --- a/example/aitf/ancil.py +++ b/example/aitf/ancil.py @@ -124,8 +124,10 @@ class GFSDownloader(csppfetch.Downloader): urls_to_files.update(self.url_to_file_for_time(generated_time, end)) expected = self.is_expected(forecast_start) and self.is_expected(end) + startstr = str(int(forecast_start.total_seconds()/(60*60))) + endstr = str(int( end.total_seconds()/(60*60))) - description = f"{self.name} for {generated_time} forecast {forecast_start} and {end} hours into the future" + description = f"{self.name} for {generated_time} forecast {startstr} and {endstr} hours into the future" fs = csppfetch.FileSet(urls_to_files, expected, description) filesets.append(fs) -- GitLab