From b4aa5046fb9fab26fd3764fa7767a8c8d56f248d Mon Sep 17 00:00:00 2001
From: Nick Bearson <nickb@ssec.wisc.edu>
Date: Thu, 12 May 2022 08:28:22 -0500
Subject: [PATCH] readability

---
 gridded_glm/libexec/_minute_gridder.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gridded_glm/libexec/_minute_gridder.py b/gridded_glm/libexec/_minute_gridder.py
index 87bdf71..f8a1840 100644
--- a/gridded_glm/libexec/_minute_gridder.py
+++ b/gridded_glm/libexec/_minute_gridder.py
@@ -330,9 +330,13 @@ if __name__ == '__main__':
         if len(fileglob) != 3:
             log.error("There are not (yet) three GLM files from this minute. This may be expected. Exiting.")
             exit(0)
+
+        # this allows a user to use realtime mode to process a large directory of GLM without
+        # creating the same output file multiple times
         if sorted(fileglob)[-1] != args.filenames[0]:
             log.error("This is not the last file from this minute. Exiting.")
             exit(0)
+
         args.filenames = fileglob
 
     # check that all of our inputs exist
-- 
GitLab