def read_array(path, mmap_mode=None):
    file_ext = op.splitext(path)[1]
    if file_ext == '.npy':
        return np.load(path, mmap_mode=mmap_mode)
    raise NotImplementedError("The file extension `{}` ".format(file_ext) +
                              "is not currently supported.")
A simple way of getting the Exception class of an http error from http
dataset/ETHPy150Open kwikteam/phy/phy/io/array.py/read_array--crossover with--dataset/ETHPy150Open pyGrowler/Growler/growler/http/errors.py/HTTPError.get_from_code