Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-19 08:00:02

0001 import json
0002 import os
0003 
0004 job_params_file = "__job_params__"
0005 
0006 
0007 # get job params from file
0008 def get_job_params(work_spec):
0009     with open(make_file_path(work_spec)) as f:
0010         return json.load(f)
0011 
0012 
0013 # store job params in file
0014 def store_job_params(work_spec, params):
0015     with open(make_file_path(work_spec), "w") as f:
0016         json.dump(params, f)
0017 
0018 
0019 # make file path
0020 def make_file_path(work_spec):
0021     return os.path.join(work_spec.get_access_point(), job_params_file)