From c1df01045ae987a2e70f58b9ade9d6c444726697 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Thu, 14 Apr 2022 15:09:50 +0200 Subject: [PATCH] Assume `node_id_param.json` in current directory Assume that `node_id_param.json` is in the current directory. We do not want paths written inside the script. --- gt_segmented_cf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gt_segmented_cf.py b/gt_segmented_cf.py index de1db6f0..aa76980f 100644 --- a/gt_segmented_cf.py +++ b/gt_segmented_cf.py @@ -83,8 +83,7 @@ def calculate_radii_and_rossby(start, end, inc, segment, e_overestim, ext_shp_rc # grab e_overestim ############################### -node_id_param_file = "/data/misic/Convert_Global/node_id_param.json" -with open(node_id_param_file) as f: node_id_param = json.load(f) +with open("node_id_param.json") as f: node_id_param = json.load(f) # assign attributes to the whole graphs e_overestim = node_id_param["e_overestim"] -- GitLab