Skip to content

Commit

Permalink
aradhakrishnanGFDL#38 Adjusting JSON path
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciheim committed Feb 20, 2024
1 parent 9025ba0 commit 58b65d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen_intake_gfdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def main(input_path,output_path,filter_realm,filter_freq,filter_chunk,overwrite,
list_files = gfdlcrawler.crawlLocal(project_dir, dictFilter, dictFilterIgnore,logger)

#Grabbing data from template JSON, changing CSV path to match output path, and dumping data in new JSON
with open("./intakebuilder/templates/gfdl_template.json", "r") as jsonTemplate:
with open("intakebuilder/templates/gfdl_template.json", "r") as jsonTemplate:
data = json.load(jsonTemplate)
data["catalog_file"] = os.path.abspath(csv_path)
jsonFile = open(json_path, "w")
Expand Down

0 comments on commit 58b65d0

Please sign in to comment.