From 15d6f724285fd8caf7070471b458eca7cadc542c Mon Sep 17 00:00:00 2001 From: Mathieu Doucet <doucetm@ornl.gov> Date: Tue, 14 Jun 2011 21:48:23 +0000 Subject: [PATCH] Fix problem with Version parameter of mantidsimple. Re #1591 --- Code/Mantid/Framework/PythonAPI/mantidsimple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Mantid/Framework/PythonAPI/mantidsimple.py b/Code/Mantid/Framework/PythonAPI/mantidsimple.py index 5c381bc626b..397639671f4 100755 --- a/Code/Mantid/Framework/PythonAPI/mantidsimple.py +++ b/Code/Mantid/Framework/PythonAPI/mantidsimple.py @@ -35,7 +35,7 @@ def create_algorithm(algorithm, version): _version = version if "Version" in kwargs: _version = kwargs["Version"] - kwargs.pop(kwargs.index("Version")) + del kwargs["Version"] algm = mtd.createAlgorithm(algorithm, _version) algm.setPropertyValues(*args, **kwargs) algm.execute() -- GitLab