From 587e05e80b3f92448c493f8008b939b413288f62 Mon Sep 17 00:00:00 2001
From: Karim Ahmed <karim.ahmed@xfel.eu>
Date: Tue, 15 Sep 2020 10:20:19 +0200
Subject: [PATCH] wrong argument order in save_const_to_h5

---
 cal_tools/cal_tools/tools.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cal_tools/cal_tools/tools.py b/cal_tools/cal_tools/tools.py
index abed088ac..d6364ba6b 100644
--- a/cal_tools/cal_tools/tools.py
+++ b/cal_tools/cal_tools/tools.py
@@ -266,7 +266,7 @@ def get_dir_creation_date(directory, run, tsdir=False, verbosity=0):
             ntries -= 1
 
 
-def save_const_to_h5(device, constant, data, condition,
+def save_const_to_h5(device, constant, condition, data,
                     file_loc, creation_time, out_folder):
     """
     Save constant in h5 file with its metadata
-- 
GitLab