From e0c078e834235cf8c4ed6ea6b8a417ffce7b1039 Mon Sep 17 00:00:00 2001 From: mishaschwartz <4380924+mishaschwartz@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:32:40 -0400 Subject: [PATCH] review feedback --- STACpopulator/implementations/CMIP6_UofT/add_CMIP6.py | 2 +- .../implementations/DirectoryLoader/crawl_directory.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/STACpopulator/implementations/CMIP6_UofT/add_CMIP6.py b/STACpopulator/implementations/CMIP6_UofT/add_CMIP6.py index bc0efed..336cd23 100644 --- a/STACpopulator/implementations/CMIP6_UofT/add_CMIP6.py +++ b/STACpopulator/implementations/CMIP6_UofT/add_CMIP6.py @@ -132,7 +132,7 @@ def main(*args: str) -> int: parser = argparse.ArgumentParser() add_parser_args(parser) ns = parser.parse_args(args or None) - ns.populator = "CMIP6_UofT" + ns.populator = os.path.basename(os.path.dirname(__file__)) return cli.run(ns) if __name__ == "__main__": diff --git a/STACpopulator/implementations/DirectoryLoader/crawl_directory.py b/STACpopulator/implementations/DirectoryLoader/crawl_directory.py index 3bd96a8..cb6cd9b 100644 --- a/STACpopulator/implementations/DirectoryLoader/crawl_directory.py +++ b/STACpopulator/implementations/DirectoryLoader/crawl_directory.py @@ -73,7 +73,7 @@ def main(*args: str) -> int: parser = argparse.ArgumentParser() add_parser_args(parser) ns = parser.parse_args(args or None) - ns.populator = "DirectoryLoader" + ns.populator = os.path.basename(os.path.dirname(__file__)) return cli.run(ns)