Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/y/pymca-HEAD/PyMca5/PyMcaIO/EdfFile.py   pymca(Download)
    PILATUS_CBF_SUPPORT = False
try:
    from PyMca5.FastEdf import extended_fread
    CAN_USE_FASTEDF = 1
except:
                Data = numpy.zeros([Size[1], Size[0]], type)
                self.File.seek((((Pos[1] * sizex) + Pos[0]) * size_pixel) + self.Images[Index].DataPosition, 0)
                extended_fread(Data, Size[0] * size_pixel , numpy.array([Size[1]]),
                               numpy.array([sizex * size_pixel]) , self.File)
 
                Data = numpy.zeros([Size[2], Size[1], Size[0]], type)
                self.File.seek(((((Pos[2] * sizey + Pos[1]) * sizex) + Pos[0]) * size_pixel) + self.Images[Index].DataPosition, 0)
                extended_fread(Data, Size[0] * size_pixel , numpy.array([Size[2], Size[1]]),
                        numpy.array([ sizey * sizex * size_pixel , sizex * size_pixel]) , self.File)