Ejemplo n.º 1
0
  def _checkNcalib(self):
    numOfScanStepsFile = []
    path = tools.commonPathPrefix(self._paths["data"])
    path = getPath(path)
    for h in self._h5s:
      n=0
      while( tH5.datasetExists(h,path % n) ):
        n+=1
      numOfScanStepsFile.append(n)
    nccs = []
    for h in self._h5s:
      n=0
      while( tH5.datasetExists(h,'/Configure:0000/Run:0000/CalibCycle:%04d/' % n) ):
        n+=1
      nccs.append(n)
    self._numOfScanStepsFile = []
    for n in range(len(self._h5s)):
      if nccs[n] > numOfScanStepsFile[n]:
	print "More calibcycle structures than detectors, will lead to empty detector steps..."
        self._numOfScanStepsFile.append(nccs[n])
      else:
        self._numOfScanStepsFile.append(numOfScanStepsFile[n])

    
    return self._numOfScanStepsFile
Ejemplo n.º 2
0
 def _checkNcalib(self):
   self._numOfScanSteps = []
   for h in self._h5s:
     n=0
     while( tH5.datasetExists(h,self._paths % n) ):
       n+=1
     self._numOfScanSteps.append(n)
   return self._numOfScanSteps