From 1badb2c532b2b502357fa6db8832bbfa38e69c65 Mon Sep 17 00:00:00 2001 From: Aparna Radhakrishnan Date: Fri, 26 Jul 2024 11:11:51 -0400 Subject: [PATCH] Update gen_intake_gfdl_runner.py --- catalogbuilder/scripts/gen_intake_gfdl_runner.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/catalogbuilder/scripts/gen_intake_gfdl_runner.py b/catalogbuilder/scripts/gen_intake_gfdl_runner.py index 52ac5f9..82cbc15 100755 --- a/catalogbuilder/scripts/gen_intake_gfdl_runner.py +++ b/catalogbuilder/scripts/gen_intake_gfdl_runner.py @@ -1,13 +1,14 @@ #!/usr/bin/env python #TODO test after conda pkg is published and make changes as needed -#from catalogbuilder.scripts import gen_intake_gfdl -from . import gen_intake_gfdl +from catalogbuilder.scripts import gen_intake_gfdl +#from . import gen_intake_gfdl import sys input_path = "/archive/am5/am5/am5f3b1r0/c96L65_am5f3b1r0_pdclim1850F/gfdl.ncrc5-deploy-prod-openmp/pp/" output_path = "test" -sys.argv = ['INPUT_PATH', input_path, output_path] -print(sys.argv) -gen_intake_gfdl.main() +try: + gen_intake_gfdl.create_catalog(input_path,output_path) +except: + sys.exit("Exception occured calling gen_intake_gfdl.create_catalog")