Closed jonathan-laurent closed 3 years ago
Thank you very much for reporting! This should be fixed now.
Thanks for your answer!
However, your fix only applies to the case where None
is passed and indeed, the code below still segfaults:
let () =
Py.initialize;
Numpy.to_bigarray Float64 C_layout (Py.Int.of_int 2)
Would there be a way for Numpy.to_bigarray
to check whether the passed object is indeed a numpy array?
Oops! Sorry for that. Done!
The following code causes a segfault:
Would it be possible for
Numpy.to_bigarray
to raise an exception instead (as is done byPy.Int.to_int
for example)?