diff --git a/Code/Mantid/Framework/Algorithms/src/ReflectometryWorkflowBase.cpp b/Code/Mantid/Framework/Algorithms/src/ReflectometryWorkflowBase.cpp index 4c9a45acd7a2..4dca7ce09f18 100644 --- a/Code/Mantid/Framework/Algorithms/src/ReflectometryWorkflowBase.cpp +++ b/Code/Mantid/Framework/Algorithms/src/ReflectometryWorkflowBase.cpp @@ -448,7 +448,7 @@ namespace Mantid * @param monitorIndex : Monitor index * @param wavelengthMinMax : Wavelength min max for detector workspace * @param backgroundMinMax : Wavelength min max for flat background correction of monitor workspace - * @param wavelengthStep : Wavlength step size for rebinning. + * @param wavelengthStep : Wavelength step size for rebinning. * @return Tuple of detector and monitor workspaces */ ReflectometryWorkflowBase::DetectorMonitorWorkspacePair ReflectometryWorkflowBase::toLam( diff --git a/Code/Mantid/docs/source/algorithms/LoadReflTBL-v1.rst b/Code/Mantid/docs/source/algorithms/LoadReflTBL-v1.rst index d26a5169ce35..fcf2790dd477 100644 --- a/Code/Mantid/docs/source/algorithms/LoadReflTBL-v1.rst +++ b/Code/Mantid/docs/source/algorithms/LoadReflTBL-v1.rst @@ -13,12 +13,37 @@ LoadReflTBl is loads ascii files in Reflectometry TBL format into a tableworkspace. Format accepted is strict to only allow 17 columns of data. -The 17 columns are split up into rows of 8, so a single row in the TBL -file would be split into 3 colums like so: (Where Z is the newly created -stitch group index) A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q +The ascii format contains up to runs per row. The in-memory table workspace puts each run on its own row, with a 'StitchGroup' id used to determine which runs should be +stitched together. The columns in the table workspace schema are **Run(s),ThetaIn,TransRun(s),Qmin,Qmax,dq/q,Scale,StitchGroup** in that order. -becomes +Usage +----- -A, B, C, D, E, P, Q, Z F, G, H, I, J, P, Q, Z K, L, M, N, O, P, Q, Z +**Example - Simple loading** -.. categories:: +.. testcode:: LoadReflTBL1 + + table = Load(Filename="INTER_NR.tbl") + + first_row = table.row(0) + second_row = table.row(1) + + print "Rows:", table.rowCount() + print "Columns:", table.columnCount() + print "Column names:", table.getColumnNames() + print "First run:", first_row['Run(s)'] + print "Second run:", second_row['Run(s)'] + +Output +------ + +.. testoutput:: LoadReflTBL1 + + Rows: 2 + Columns: 8 + Column names: ['Run(s)','ThetaIn','TransRun(s)','Qmin','Qmax','dq/q','Scale','StitchGroup'] + First run: 13460 + Second run: 13462 + + +.. categories:: LoadReflTBL1