From ca8fa72154ec87b90f5c7b2cdefcb42491ee9cc6 Mon Sep 17 00:00:00 2001 From: Alex Buts <Alex.Buts@stfc.ac.uk> Date: Mon, 14 Oct 2019 12:50:43 +0100 Subject: [PATCH] Re #26871 One more place of Python3 specific code --- scripts/Inelastic/Direct/AbsorptionShapes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Inelastic/Direct/AbsorptionShapes.py b/scripts/Inelastic/Direct/AbsorptionShapes.py index c415b92ef9b..2f897113bc1 100644 --- a/scripts/Inelastic/Direct/AbsorptionShapes.py +++ b/scripts/Inelastic/Direct/AbsorptionShapes.py @@ -284,7 +284,7 @@ class anAbsorptionShape(object): elif isinstance(value,dict): for key,val in value.items(): if isinstance(val,(list,tuple)): - val = map(lambda x: float(x),val) + val = [float(x) for x in val] else: val = float(val) shape_dict[key] = val -- GitLab