Numpy.NET icon indicating copy to clipboard operation
Numpy.NET copied to clipboard

np.load of np.savez impossible to get values back out?

Open jensroth-git opened this issue 1 year ago • 3 comments

after saving some arrays into a .npz archive like so

Dictionary<string, NDarray> arrays = new Dictionary<string, NDarray>();
arrays["valueOne"] = valueOne;
arrays["valueTwo"] = valueTwo;

np.savez_compressed(filename, null, arrays);

its impossible to get the values back out

var archive = np.load(filename);

var valueOne = archive["valueOne"];
var valueTwo = archive["valueTwo"];

it just results in a System.ArgumentException: 'Invalid slice notation'

jensroth-git avatar Nov 12 '22 03:11 jensroth-git