From f3bb4280937f1be15286ec919af607f1404a8a10 Mon Sep 17 00:00:00 2001 From: Mathieu Doucet <doucetm@ornl.gov> Date: Thu, 16 Dec 2010 22:06:59 +0000 Subject: [PATCH] Fixed input workspace. Now has dropdown menu. Re #2019 --- Code/Mantid/PythonAPI/PythonAlgorithms/EQSANSTofOffset.py | 2 +- Code/Mantid/PythonAPI/PythonAlgorithms/EQSANSTransmission.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Mantid/PythonAPI/PythonAlgorithms/EQSANSTofOffset.py b/Code/Mantid/PythonAPI/PythonAlgorithms/EQSANSTofOffset.py index b2371e5c581..ce437801911 100644 --- a/Code/Mantid/PythonAPI/PythonAlgorithms/EQSANSTofOffset.py +++ b/Code/Mantid/PythonAPI/PythonAlgorithms/EQSANSTofOffset.py @@ -24,7 +24,7 @@ class EQSANSTofOffset(PythonAlgorithm): return "EQSANSTofOffset" def PyInit(self): - self.declareProperty("InputWorkspace", "") + self.declareWorkspaceProperty("InputWorkspace", "", Direction.Input) self.declareProperty("FrameSkipping", False) self.declareProperty("Offset", 0.0, Direction=Direction.Output) diff --git a/Code/Mantid/PythonAPI/PythonAlgorithms/EQSANSTransmission.py b/Code/Mantid/PythonAPI/PythonAlgorithms/EQSANSTransmission.py index e132c32e516..dac6029f071 100644 --- a/Code/Mantid/PythonAPI/PythonAlgorithms/EQSANSTransmission.py +++ b/Code/Mantid/PythonAPI/PythonAlgorithms/EQSANSTransmission.py @@ -40,7 +40,7 @@ class EQSANSTransmission(PythonAlgorithm): def PyInit(self): # Input workspace - self.declareProperty("InputWorkspace", "") + self.declareWorkspaceProperty("InputWorkspace", "", Direction.Input) # Output workspace to put the transmission histo into self.declareProperty("OutputWorkspace", "") # X position of the beam center -- GitLab