def load(self, file):
    with open(file, 'rb') as fp:
        if (fp.read(self.__floheaderlen__) != self.__floheader__):
            raise Exception(('Bad flow header: ' + file))
        result = np.ndarray(shape=self.__floshape__, dtype=np.float32, buffer=fp.read(), order='C')
        return result
def load(self, file):
    with open(file, 'rb') as fp:
        if (fp.read(self.__floheaderlen__) != self.__floheader__):
            raise Exception(('Bad flow header: ' + file))
        result = np.ndarray(shape=self.__floshape__, dtype=np.float32, buffer=fp.read(), order='C')
        return result