Sep-25-2023, 04:17 AM
(This post was last modified: Sep-25-2023, 04:17 AM by deanhystad.)
The "recommended" code of mine in your post doesn't do any unpickling. It is incapable of generating an unpickling error. Not sure what you are talking about.
To print out long numpy arrays without ". . ." you can set the numpy print options
https://numpy.org/doc/stable/reference/g...tions.html
To print out long numpy arrays without ". . ." you can set the numpy print options
https://numpy.org/doc/stable/reference/g...tions.html
import joblib import sys import numpy as np np.set_printoptions(threshold=sys.maxsize) output = joblib.load('/home/yuan/motion_data/output.pkl') with open('/home/yuan/motion_data/data.txt', 'w') as file: print(output, file=file)