You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instantiating G3Timestream from a numpy array works, but only if the buffer is close-packed in memory. Passing a view into an array, where strides are not 1, yields a segfault.
import spt3g
from spt3g import core
import numpy as np
print(spt3g.version.gitrevision)
for n in [1, 2, -2]:
print(n)
data = np.zeros(100, 'float64')[::n]
print(core.G3Timestream(data))
Instantiating G3Timestream from a numpy array works, but only if the buffer is close-packed in memory. Passing a view into an array, where strides are not 1, yields a segfault.
Results in:
Expected result: the non-trivial stride should either quietly work, or raise an exception.
The text was updated successfully, but these errors were encountered: