Download and save quantity matrix

I'm having problems loading the numpy matrix. I successfully saved it to disk via:

self.q.dump(fileName) 

and now I want to be able to download it. From what I understand, the load command should do the trick:

 self.q.load(fileName) 

but this is not so. Does anyone know what could be wrong? Maybe the function is not called load?

+1
python numpy
source share
1 answer
 help(numpy.ndarray) | dump(...) | a.dump(file) | | Dump a pickle of the array to the specified file. | The array can be read back with pickle.load or numpy.load. | | Parameters | ---------- | file : str | A string naming the dump file. 

numpy.load should work fine.

+3
source share

All Articles