| 360 | } |
| 361 | |
| 362 | cnpy::NpyArray cnpy::npy_load(std::string fname) |
| 363 | { |
| 364 | FILE* fp = fopen(fname.c_str(), "rb"); |
| 365 | |
| 366 | // if(!fp) throw std::runtime_error("npy_load: Unable to open file "+fname); |
| 367 | NpyArray arr; |
| 368 | if (fp) { |
| 369 | arr = load_the_npy_file(fp); |
| 370 | fclose(fp); |
| 371 | } |
| 372 | |
| 373 | return arr; |
| 374 | } |
nothing calls this directly
no test coverage detected