diff --git a/docs/source/algorithms/QueryMDWorkspace-v1.rst b/docs/source/algorithms/QueryMDWorkspace-v1.rst index d9908cf4f77d2ec202d6c210a70670c56a48c36e..258550f1feb6338918c9d0c0b0824b207af3ba6c 100644 --- a/docs/source/algorithms/QueryMDWorkspace-v1.rst +++ b/docs/source/algorithms/QueryMDWorkspace-v1.rst @@ -29,18 +29,18 @@ Usage .. testcode:: ExQueryMDWorkspace # create sample inelastic workspace for MARI instrument containing 1 at all spectra - ws1=CreateSimulationWorkspace(Instrument='MAR',BinParams='-10,1,10',UnitX='DeltaE') - AddSampleLog(ws1,'Ei','12.','Number') - ws2=ws1*2; + ws1 = CreateSimulationWorkspace(Instrument='MAR', BinParams='-10,1,10', UnitX='DeltaE') + AddSampleLog(ws1, 'Ei', '12.', 'Number') + ws2 = ws1 * 2; # Convert to MD - mdWs1 =ConvertToMD(InputWorkspace=ws1,QDimensions='|Q|',QConversionScales='Q in A^-1',SplitInto='10,10',MaxRecursionDepth='1') + mdWs1 = ConvertToMD(InputWorkspace=ws1, QDimensions='|Q|', QConversionScales='Q in A^-1', SplitInto='10,10', MaxRecursionDepth='1') # get the query table = QueryMDWorkspace(InputWorkspace=mdWs1) # look at the output: - col_names=table.keys(); - name0=col_names[0]; + col_names = table.keys(); + name0 = col_names[0]; nRows = len(table.column(name0)); print("Table contains {0} rows".format(nRows)) print("first 11 of them are:")