From 6a4a96735b4bd5faf05c5e77d27a02b6e72704d5 Mon Sep 17 00:00:00 2001 From: Vickie Lynch <lynchve@ornl.gov> Date: Tue, 24 Mar 2015 16:10:00 -0400 Subject: [PATCH] Refs #11244 fix xml output file --- .../Framework/Crystal/src/SCDCalibratePanels.cpp | 2 +- .../source/algorithms/IntegrateEllipsoids-v1.rst | 2 +- .../docs/source/algorithms/IntegratePeaksMD-v2.rst | 2 +- .../source/algorithms/SCDCalibratePanels-v1.rst | 13 +++++++++++++ 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Code/Mantid/Framework/Crystal/src/SCDCalibratePanels.cpp b/Code/Mantid/Framework/Crystal/src/SCDCalibratePanels.cpp index 79f0d3da50e..106ed965dab 100644 --- a/Code/Mantid/Framework/Crystal/src/SCDCalibratePanels.cpp +++ b/Code/Mantid/Framework/Crystal/src/SCDCalibratePanels.cpp @@ -1669,7 +1669,7 @@ void SCDCalibratePanels::FixUpBankParameterMap( void writeXmlParameter(ofstream &ostream, const string &name, const double value) { ostream << " <parameter name =\"" << name << "\"><value val=\"" << value - << "\" />" << endl; + << "\" /> </parameter>" << endl; } void diff --git a/Code/Mantid/docs/source/algorithms/IntegrateEllipsoids-v1.rst b/Code/Mantid/docs/source/algorithms/IntegrateEllipsoids-v1.rst index c64b003e766..831d0c6d5d8 100644 --- a/Code/Mantid/docs/source/algorithms/IntegrateEllipsoids-v1.rst +++ b/Code/Mantid/docs/source/algorithms/IntegrateEllipsoids-v1.rst @@ -162,7 +162,7 @@ Usage **Example - IntegrateEllipsoids:** -The code iteslef works but disabled from doc tests as takes too long to complete. User should provide its own +The code itself works but disabled from doc tests as takes too long to complete. User should provide its own event nexus file instead of **TOPAZ_3132_event.nxs** used within this example. The original **TOPAZ_3132_event.nxs** file is availible in `Mantid system tests repository <https://github.com/mantidproject/systemtests/tree/master/Data/TOPAZ_3132_event.nxs>`_. diff --git a/Code/Mantid/docs/source/algorithms/IntegratePeaksMD-v2.rst b/Code/Mantid/docs/source/algorithms/IntegratePeaksMD-v2.rst index 704b3cf2ce5..20ec4aae8a9 100644 --- a/Code/Mantid/docs/source/algorithms/IntegratePeaksMD-v2.rst +++ b/Code/Mantid/docs/source/algorithms/IntegratePeaksMD-v2.rst @@ -129,7 +129,7 @@ Usage **Example - IntegratePeaks:** -The code iteslef works but disabled from doc tests as takes too long to complete. User should provide its own +The code itself works but disabled from doc tests as takes too long to complete. User should provide its own event nexus file instead of **TOPAZ_3132_event.nxs** used within this example. The original **TOPAZ_3132_event.nxs** file is availible in `Mantid system tests repository <https://github.com/mantidproject/systemtests/tree/master/Data/TOPAZ_3132_event.nxs>`_. diff --git a/Code/Mantid/docs/source/algorithms/SCDCalibratePanels-v1.rst b/Code/Mantid/docs/source/algorithms/SCDCalibratePanels-v1.rst index 0ddba6913fe..1f98aa15a47 100644 --- a/Code/Mantid/docs/source/algorithms/SCDCalibratePanels-v1.rst +++ b/Code/Mantid/docs/source/algorithms/SCDCalibratePanels-v1.rst @@ -95,4 +95,17 @@ algorithm. To do so select the workspace, which you have calibrated as the InputWorkspace and the workspace you want to copy the calibration to, the OutputWorkspace. +Usage +------ + +**Example - SCDCalibratePanels:** + + LoadIsawPeaks(Filename='MANDI_801.peaks', OutputWorkspace='peaks') + SCDCalibratePanels(PeakWorkspace='peaks',DetCalFilename='mandi_801.DetCal',XmlFilename='mandi_801.xml',a=74,b=74.5,c=99.9,alpha=90,beta=90,gamma=60) + Load(Filename='MANDI_801_event.nxs', OutputWorkspace='MANDI_801_event') + CloneWorkspace(InputWorkspace='MANDI_801_event', OutputWorkspace='MANDI_801_event_xml') + LoadParameterFile(Workspace='MANDI_801_event_xml', Filename='mandi_801.xml') + RenameWorkspace(InputWorkspace='MANDI_801_event_xml', OutputWorkspace='MANDI_801_event_DetCal') + LoadIsawDetCal(InputWorkspace='MANDI_801_event_DetCal', Filename='mandi_801.DetCal') + .. categories:: -- GitLab