Open erichnau opened 9 months ago
Hi, you can try to change lines 85 and 133 in the "cnpy.cpp" file to:
shape.push_back(std::stoul(sm[0].str()));
The original implementation uses std::stoi
which cannot support shape dimension > 2,147,483,647.
Great. Thanks guys, that solved my issue!
I am sucessfully using cnpy for the conversion of a custom .fld format to .npy, however, i have lately observed issues with very large files. my npy files are written to a maximum size of 6.81GB - then writing stops but the process continues without any errors. the resulting npy is faulty because the array size specified in the header does not match the data.