(bytestream)
| 19 | print('Succesfully downloaded', filename, statinfo.st_size, 'bytes.') |
| 20 | return filepath |
| 21 | def _read32(bytestream): |
| 22 | dt = numpy.dtype(numpy.uint32).newbyteorder('>') |
| 23 | return numpy.frombuffer(bytestream.read(4), dtype=dt) |
| 24 | def extract_images(filename): |
| 25 | """Extract the images into a 4D uint8 numpy array [index, y, x, depth].""" |
| 26 | print('Extracting', filename) |
no outgoing calls
no test coverage detected