IMTEK-Simulation / NuMPI

Utilities for MPI-parallel numerical calculations with Python
MIT License
2 stars 1 forks source link

NPY reader hangs when trying to open an incompatible file #23

Open pastewka opened 5 years ago

pastewka commented 5 years ago

The NPY file view stalls forever if a file is opened that is not a NPY file (and an exception should be raised).

This occured when running on a single process with mpi4py.

sannant commented 5 years ago

Shouldn't this happen in test_raises_and_no_resourcewarnings ? And it doesn't. It properly raises MPIFileTypeError: MAGIC_PREFIX missing at the beginning of file is your example file something special ? I tried with a random text file and an ibw file.

mcrot commented 4 years ago

@pastewka , is the file small and can we add it to the test files? Or is wrongnpyfile.npy related to this issue?