parameters: (reducer)
return_statement: return bench_rotation
docstring: Extract the bench rotation from the instrument
      of the reducer
      @param reducer: the reducer object
      @returns the bench rotation in degrees
docstring_summary: Extract the bench rotation from the instrument
      of the reducer
docstring_tokens: Extract the bench rotation from the instrument of the reducer
function: def get_bench_rotation(reducer):
      '''
      Extract the bench rotation from the instrument
      of the reducer
      @param reducer: the reducer object
      @returns the bench rotation in degrees
      '''
      bench_rotation = 0.0
      # pylint: disable=bare-except
      try:
          ws = mtd[str(reducer.get_sample().get_wksp_name())]
          bench_rotation = reducer.instrument.getDetValues(ws)[0]
      except:
          bench_rotation = 0.0
      return bench_rotation
function_tokens: def get_bench_rotation ( reducer ) : bench_rotation = 0.0 # pylint: disable=bare-except try : ws = mtd [ str ( reducer . get_sample ( ) . get_wksp_name ( ) ) ] bench_rotation = reducer . instrument . getDetValues ( ws ) [ 0 ] except : bench_rotation = 0.0 return bench_rotation