Skip to content

Commit

Permalink
Move components in python for SANS2D transmission and direct beam run…
Browse files Browse the repository at this point in the history
… also. re #3617
  • Loading branch information
Anders-Markvardsen committed Oct 26, 2011
1 parent e87573c commit 2d6df8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Code/Mantid/scripts/SANS/isis_reduction_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,11 @@ def execute(self, reducer, workspace):
#transmission workspaces sometimes have monitor locations, depending on the instrument, load these locations
reducer.instrument.load_transmission_inst(self.trans.wksp_name)
reducer.instrument.load_transmission_inst(self.direct.wksp_name)

if reducer.instrument.name() == 'SANS2D':
beamcoords = reducer._beam_finder.get_beam_center()
reducer.instrument.move_components(self.trans.wksp_name, beamcoords[0], beamcoords[1])
reducer.instrument.move_components(self.direct.wksp_name, beamcoords[0], beamcoords[1])

return self.trans.wksp_name, self.direct.wksp_name

Expand Down

0 comments on commit 2d6df8d

Please sign in to comment.