Пример #1
0
def timeTool_binning(d=None):
  if d==None: d = read_data()
  ttcalib = [5.3106e-18,-1.2164e-14,5.687e-12]

  # filtering for the dropped shots
  filt = []
  for step in d.eventCode.code162:
    filt.append(step==True)
  d.filter = filt
  ixppy.parameterFilt(d.ipm2.sum,d,lims=[.1,10])
  # getting all important data
  i0 = hstack(d.ipm2.sum)
  i = hstack(d.diodeU.channel1)
  tt = hstack([delay+polyval(ttcalib,fltpos) for delay,fltpos in zip(d.scanVec,d.timeTool.fltpos)])
  hist2DSmart(tt,i/i0)
  return i,i0,tt
Пример #2
0
def filter(d=None):
  if d==None: d = read_data()
  # filter function, graphical input if no limits passed
  ixppy.parameterFilt(d.ipm2.sum,d)
  return d