xtensor
xtensor copied to clipboard
how do I load numpy array of string using load_npy?
I have a numpy array with dtype of '|S19' and I tried to use load_npystd::string to load it but failed. Is it possible to do it with xtensor?
What error do you have?
error: Unhandled exception at 0x00007FFBF1813B29 in my_app.exe: Microsoft C++ exception: std::runtime_error at memory location 0x000000EFFF6F9948. occurred throwed by inline void parse_typestring(std::string typestring) in xnpy.hpp, the "invalid typestring" exception I use numpy.save to save a string array (with dtype of either '|S19' or '<U19') converted from a list of strings and tried to load it with xt::load_npystd::string