Skip to content

Commit

Permalink
Fix LoadInstrument usage test
Browse files Browse the repository at this point in the history
The parameter count has changed.
Refs #10532
  • Loading branch information
martyngigg committed Dec 6, 2014
1 parent 7c0908a commit 8633103
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Code/Mantid/docs/source/algorithms/LoadInstrument-v1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ Usage
# create sample workspace
ws=CreateSampleWorkspace();
inst0=ws.getInstrument();

print "Default workspace has instrument: {0} with {1} parameters".format(inst0.getName(),len(inst0.getParameterNames()));

# load MARI
det=LoadInstrument(ws,InstrumentName='MARI')
inst1=ws.getInstrument();

print "Modified workspace has instrument: {0} with {1} parameters".format(inst1.getName(),len(inst1.getParameterNames()));
print "Instrument {0} has the following detectors: ".format(inst1.getName()),det


**Output:**

.. testoutput:: exLoadInstrument

Default workspace has instrument: basic_rect with 0 parameters
Modified workspace has instrument: MARI with 69 parameters
Modified workspace has instrument: MARI with 70 parameters
Instrument MARI has the following detectors: [1 2 3]


Expand Down

0 comments on commit 8633103

Please sign in to comment.