Пример #1
0
  def getRefIntensity(self,imagemask=None):
    self.Iref = self.refDataFilter * nansum(self.data)
    fina = 'tmp_getRefIntensity_' + \
	  datetime.datetime.now().isoformat() + '.ixp.h5'
    logbook(fina)
    self.Iref.setFile(fina)
    self.Iref.evaluate()
    self.Iref = self.Iref.get_memdata()[0]
    os.remove(fina)
Пример #2
0
  def _getMonitor(self): 
    if self._monitor is None:
      try:
        self._monitor = self.res[self._dsNamePrefix+'_nansum_i0']
      except:
        self.res[self._dsNamePrefix+'_nansum_raw'] = nansum(self.data)
        logbook("Extracting I0 from radial profile...")
        self.res[self._dsNamePrefix+'_nansum_raw'].evaluate()
        self.res[self._dsNamePrefix+'_nansum_i0'] = \
	    self.res[self._dsNamePrefix+'_nansum_raw'].get_memdata()[0]
        self._monitor = self.res[self._dsNamePrefix+'_nansum_i0']
    return self._monitor