Example #1
0
 def scan(self, t, dt=None):
     source = istr_best_2d_source(self.name.lower(), self.paletterun.avail_sources())
     if source is None:
         # FIXME: still nothing, return blank scan object
         return
     else:
         # adjust the time appropriately
         t = (t - self.x_offset) / self.x_scale
         if dt is not None:
             dt /= self.x_scale
         # find the scan
         scan = self.paletterun.datafile(source).scan(t, dt)
         scan.source = source
         return scan
Example #2
0
 def frame(self, twin=None):
     # TODO: use twin
     source = istr_best_2d_source(self.name.lower(), self.paletterun.avail_sources())
     return self.paletterun.datafile(source).data