Skip to content
Snippets Groups Projects
Commit bc093f0c authored by Matt King's avatar Matt King
Browse files

Changed property name values and Name of file

The algorithm being subscribed to mantid is called GetNuMegMuonicXRD so the file name has been changed for continuity. To comply with RHEL builds the property names now have no spaces.
Refs #13145
parent 3c16a288
No related branches found
No related tags found
No related merge requests found
......@@ -18,12 +18,12 @@ class GetNegMuMuonicXRD(PythonAlgorithm):
def PyInit(self):
element_type = self.Muonic_XR.keys()
self.declareProperty("Element List", "None", StringListValidator(element_type),
self.declareProperty("ElementList", "None", StringListValidator(element_type),
doc="List of available elements")
self.declareProperty(StringArrayProperty("Elements", values=[],
direction=Direction.Input
))
self.declareProperty(name="YAxis Position",
self.declareProperty(name="YAxisPosition",
defaultValue=-0.001,
doc="Position for Markers on the y-axis")
......@@ -47,7 +47,7 @@ class GetNegMuMuonicXRD(PythonAlgorithm):
def PyExec(self):
elements = self.getProperty("Elements").value
yposition = self.getProperty("YAxis Position").value
yposition = self.getProperty("YAxisPosition").value
workspace_list = [None]*len(elements)
for idx,element in enumerate(elements):
curr_workspace = self.Create_MuonicXR_WS(element, yposition)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment