parameters: (workspace)
docstring: Print some useful information from sample logs.
  
      The logs are expected to contain some ILL specific fields.
  
      :param workspace: a workspace from which to extract the logs
      :type workspace: str or :class:`mantid.api.MatrixWorkspace`
      :returns: None
docstring_summary: Print some useful information from sample logs.
docstring_tokens: Print some useful information from sample logs .
function: def wsreport(workspace):
      """Print some useful information from sample logs.
  
      The logs are expected to contain some ILL specific fields.
  
      :param workspace: a workspace from which to extract the logs
      :type workspace: str or :class:`mantid.api.MatrixWorkspace`
      :returns: None
      """
      workspace = _normws(workspace)
      logs = workspace.run()
      print(str(workspace))
      instrument = _instrumentname(logs)
      if instrument is not None:
          print('Instrument: ' + instrument)
      if logs.hasProperty('run_number'):
          print('Run Number: {:06d}'.format(logs.getProperty('run_number').value))
      if logs.hasProperty('start_time'):
          print('Start Time: {}'.format(logs.getProperty('start_time').value.replace('T', ' ')))
      ei = _incidentenergy(logs)
      wavelength = _wavelength(logs)
      if ei is not None and wavelength is not None:
          print('Ei = {:0.2f} meV    lambda = {:0.2f} A'.format(ei, wavelength))
      T = _sampletemperature(logs)
      if T is not None:
          if isinstance(T, collections.Iterable):
              meanT = _applyiftimeseries(T, numpy.mean)
              stdT = _applyiftimeseries(T, numpy.std)
              print('T = {:0.2f} +- {:4.2f} K'.format(meanT, stdT))
              minT = _applyiftimeseries(T, numpy.amin)
              maxT = _applyiftimeseries(T, numpy.amax)
              print('T in [{:0.2f},{:0.2f}]'.format(minT, maxT))
          else:
              print('T = {:0.2f} K'.format(T))
      # Instrument specific additional information
      if instrument == 'IN4':
          rpm = logs.getProperty('FC.rotation_speed').value
          hertz = rpm / 60.
          print('Fermi = {:0.0f} rpm = {:0.1f} Hz'.format(rpm, hertz))
      elif instrument == 'IN6':
          rpm = logs.getProperty('Fermi.rotation_speed').value
          hertz = rpm / 60.
          print('Fermi = {:0.0f} rpm = {:0.1f} Hz'.format(rpm, hertz))
function_tokens: def wsreport ( workspace ) : workspace = _normws ( workspace ) logs = workspace . run ( ) print ( str ( workspace ) ) instrument = _instrumentname ( logs ) if instrument is not None : print ( 'Instrument: ' + instrument ) if logs . hasProperty ( 'run_number' ) : print ( 'Run Number: {:06d}' . format ( logs . getProperty ( 'run_number' ) . value ) ) if logs . hasProperty ( 'start_time' ) : print ( 'Start Time: {}' . format ( logs . getProperty ( 'start_time' ) . value . replace ( 'T' , ' ' ) ) ) ei = _incidentenergy ( logs ) wavelength = _wavelength ( logs ) if ei is not None and wavelength is not None : print ( 'Ei = {:0.2f} meV    lambda = {:0.2f} A' . format ( ei , wavelength ) ) T = _sampletemperature ( logs ) if T is not None : if isinstance ( T , collections . Iterable ) : meanT = _applyiftimeseries ( T , numpy . mean ) stdT = _applyiftimeseries ( T , numpy . std ) print ( 'T = {:0.2f} +- {:4.2f} K' . format ( meanT , stdT ) ) minT = _applyiftimeseries ( T , numpy . amin ) maxT = _applyiftimeseries ( T , numpy . amax ) print ( 'T in [{:0.2f},{:0.2f}]' . format ( minT , maxT ) ) else : print ( 'T = {:0.2f} K' . format ( T ) ) # Instrument specific additional information if instrument == 'IN4' : rpm = logs . getProperty ( 'FC.rotation_speed' ) . value hertz = rpm / 60. print ( 'Fermi = {:0.0f} rpm = {:0.1f} Hz' . format ( rpm , hertz ) ) elif instrument == 'IN6' : rpm = logs . getProperty ( 'Fermi.rotation_speed' ) . value hertz = rpm / 60. print ( 'Fermi = {:0.0f} rpm = {:0.1f} Hz' . format ( rpm , hertz ) )