Skip to content

ANA read segmentation fault

It seems not all the values are properly read, and the Python session terminates once one tries to reach for specific values. Files don't seem to be corrupted, as reading them with IDL seems successfull.

Simple console log to recreate:

In [1]: import anaio
In [2]: import matplotlib.pyplot as plt

In [3]: stokes = anaio.fzread("20160307_scan2_full.f0")["data"]
In [4]: stokes.shape
Out[4]: (984, 150, 4, 967)

In [5]: plt.ion()
Out[5]: <contextlib.ExitStack at 0x7f4fabbec310>

In [6]: plt.clf()
In [7]: plt.imshow(stokes[0,0,:,:])
Out[7]: <matplotlib.image.AxesImage at 0x7f4fa8c82400>

In [8]: plt.clf()
In [9]: plt.imshow(stokes[:,:,0,0])
Segmentation fault (core dumped) 

Reported by Ivan Milic

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information