Closed
Description
Running the following:
import numpy as np
from pickle import loads, dumps
dt = np.dtype([('a', np.int32), ('b', np.float32)])
record = np.zeros(1, dt)[0]
print(record.flags)
print(loads(dumps(record)).flags)
Gives the output:
$ python contigdemo.py
C_CONTIGUOUS : True
F_CONTIGUOUS : True
OWNDATA : False
WRITEABLE : True
ALIGNED : True
UPDATEIFCOPY : False
C_CONTIGUOUS : False
F_CONTIGUOUS : False
OWNDATA : True
WRITEABLE : True
ALIGNED : True
UPDATEIFCOPY : False
The unpickled record has lost its C- and F-contiguity - I would have expected this to be retained.
Metadata
Metadata
Assignees
Labels
No labels