Skip to content

Commit

Permalink
Tiny modification to ease automation
Browse files Browse the repository at this point in the history
  • Loading branch information
BrieucF authored and vvolkl committed Oct 1, 2021
1 parent bd4bcad commit dcf5c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Detector/DetStudies/scripts/cec_derive1
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def main():

corr_params = []
try:
with open('corr_params_1d.json') as infile:
with open(os.path.join(args.plot_directory, 'corr_params_1d.json')) as infile:
data = json.load(infile)
if data.get('corr_params'):
corr_params = data['corr_params']
Expand All @@ -143,7 +143,7 @@ def main():
p['type'] == param_dict['type'])]
corr_params.append(param_dict)

with open('corr_params_1d.json', 'w') as outfile:
with open(os.path.join(args.plot_directory, 'corr_params_1d.json'), 'w') as outfile:
json.dump({'corr_params': corr_params}, outfile, indent=4)

plot(graph, graph.GetName(), args)
Expand Down

0 comments on commit dcf5c31

Please sign in to comment.