parameters: (self, ws, calib_ws)
docstring: Scales the wings of calibrated sample ws with the maximum
          of the integrated intensities in each wing of calib ws
          @param ws       :: calibrated sample workspace
          @param calib_ws :: calibration workspace
docstring_summary: Scales the wings of calibrated sample ws with the maximum
          of the integrated intensities in each wing of calib ws
docstring_tokens: Scales the wings of calibrated sample ws with the maximum of the integrated intensities in each wing of calib ws
function: def _scale_calibration(self, ws, calib_ws):
          '''
          Scales the wings of calibrated sample ws with the maximum
          of the integrated intensities in each wing of calib ws
          @param ws       :: calibrated sample workspace
          @param calib_ws :: calibration workspace
          '''
  
          # number of wings are checked to be the same in ws and calib_ws here already
  
          for wing in range(mtd[ws].getNumberOfEntries()):
              sample = mtd[ws].getItem(wing).getName()
              integral = mtd[calib_ws].getItem(wing).getName()
              scale = numpy.max(mtd[integral].extractY()[:,0])
              self.log().information("Wing {0} will be scaled up with {1} after calibration"
                                     .format(wing,scale))
              Scale(InputWorkspace=sample,Factor=scale,OutputWorkspace=sample,Operation='Multiply')
function_tokens: def _scale_calibration ( self , ws , calib_ws ) : # number of wings are checked to be the same in ws and calib_ws here already for wing in range ( mtd [ ws ] . getNumberOfEntries ( ) ) : sample = mtd [ ws ] . getItem ( wing ) . getName ( ) integral = mtd [ calib_ws ] . getItem ( wing ) . getName ( ) scale = numpy . max ( mtd [ integral ] . extractY ( ) [ : , 0 ] ) self . log ( ) . information ( "Wing {0} will be scaled up with {1} after calibration" . format ( wing , scale ) ) Scale ( InputWorkspace = sample , Factor = scale , OutputWorkspace = sample , Operation = 'Multiply' )