From 3818901c68fe5152000c51f31e34cc30f42952b6 Mon Sep 17 00:00:00 2001 From: Valerio Mariani <valerio.mariani@desy.de> Date: Wed, 14 Nov 2018 11:09:06 +0100 Subject: [PATCH] Removed explicit passing of arguments to standard library functions --- cfelpyutils/crystfel_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cfelpyutils/crystfel_utils.py b/cfelpyutils/crystfel_utils.py index 4a65688..a711a5d 100644 --- a/cfelpyutils/crystfel_utils.py +++ b/cfelpyutils/crystfel_utils.py @@ -229,13 +229,13 @@ def _parse_toplevel(key, value, detector, beam, panel): try: detector['mask_bad'] = int(value) except ValueError: - detector['mask_bad'] = int(x=value, base=16) + detector['mask_bad'] = int(value, base=16) elif key == 'mask_good': try: detector['mask_good'] = int(value) except ValueError: - detector['mask_good'] = int(x=value, base=16) + detector['mask_good'] = int(value, base=16) elif key == 'coffset': panel['coffset'] = float(value) @@ -447,7 +447,7 @@ def load_crystfel_geometry(filename): 'clen_for_centering': None, 'adu_per_eV': None, 'adu_per_photon': None, - 'max_adu': float(x='inf'), + 'max_adu': float('inf'), 'mask': None, 'mask_file': None, 'satmap': None, -- GitLab