From 9f6e446e5ea8272eca22b36f283c3cd1fb388890 Mon Sep 17 00:00:00 2001
From: Max Drexler <mdrexler@wisc.edu>
Date: Tue, 26 Nov 2024 15:03:05 -0600
Subject: [PATCH] remove todo file

---
 grib_processor/main.py | 13 +++++++++++--
 todo                   |  8 --------
 2 files changed, 11 insertions(+), 10 deletions(-)
 delete mode 100644 todo

diff --git a/grib_processor/main.py b/grib_processor/main.py
index 4fbb22a..2149de1 100644
--- a/grib_processor/main.py
+++ b/grib_processor/main.py
@@ -123,7 +123,12 @@ def setup() -> tuple[Iterable[GribPayload], Callable[[GribPayload], None]]:
         "--output",
         choices=["amqp", "json"],
         default="json",
-        help="Where to output processed grib messages to. Default is %(default)s.",
+        help="How to output processed grib messages to. Default is %(default)s.",
+    )
+    parser.add_argument(
+        '--no-xcd',
+       action='store_true',
+      help="Don't load XCD information when processing grib files such as model names."
     )
 
     mq_group = parser.add_argument_group(
@@ -160,7 +165,11 @@ def setup() -> tuple[Iterable[GribPayload], Callable[[GribPayload], None]]:
     if args.verbosity < 0:
         parser.error("--verbosity cannot be negative!")
     initialize_logging(args.verbosity, args.log_dir)
-    load_xcd_models()
+
+    if args.no_xcd:
+        """Don't load those models"""
+    else:
+        load_xcd_models()
 
     # Get an iterator over grib files to process
     file_iter: Iterable[str]
diff --git a/todo b/todo
deleted file mode 100644
index 5535e89..0000000
--- a/todo
+++ /dev/null
@@ -1,8 +0,0 @@
-Not in any particular order:
-
-* TESTING!!!
-* packaging
-  * Automatically bundle with grib2io
-* Add support for GRIB1 processing
-* DID I MENTION TESTING!!!
-* Documentation for the package.
-- 
GitLab