Skip to content

Commit

Permalink
CI test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aradhakrishnanGFDL committed Sep 25, 2024
1 parent d1b45c4 commit d4663e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions catalogbuilder/scripts/gen_intake_gfdl_runner_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
import sys, os

#This is an example call to run catalog builder using a yaml config file.
package_dir = os.path.dirname(os.path.abspath(__file__))
configyaml = os.path.join(package_dir, 'catalogbuilder/scripts/configs/config-example.yml')
input_path = "/archive/am5/am5/am5f3b1r0/c96L65_am5f3b1r0_pdclim1850F/gfdl.ncrc5-deploy-prod-openmp/pp"
output_path = "sample-test"

def create_catalog_from_config(input_path,output_path,configyaml):
def create_catalog_from_config(input_path,output_path,configyaml=configyaml):
csv, json = gen_intake_gfdl.create_catalog(input_path=input_path,output_path=output_path,config=configyaml)
return(csv,json)

if __name__ == '__main__':
package_dir = os.path.dirname(os.path.abspath(__file__))
configyaml = os.path.join(package_dir, 'catalogbuilder/scripts/configs/config-example2.yml')
input_path = "/archive/am5/am5/am5f3b1r0/c96L65_am5f3b1r0_pdclim1850F/gfdl.ncrc5-deploy-prod-openmp/pp"
output_path = "sample-test"
create_catalog_from_config(input_path,output_path,configyaml)


0 comments on commit d4663e5

Please sign in to comment.