python - Not the expected result while loading .mat file with scipy -


i have following problem while loading data .mat file scipy,

vari = variable_names m = scipy.io.loadmat('path\file.mat', variable_names = vari) 

what is,

{'__version__': '1.0', 'sensori': array([[ 21809339.],    [ 21809339.],    [ 21809339.],    ...,     [ 21809379.],    [ 21809379.],    [ 21809379.]]), '__header__': '', '__globals__': []} 

but isn't whole data. original variable sensori 4013x1 32104 double'. have idea why don't whole data?

you write "the goal whole array @ once" --- whole array there, m["sensori"] gets fine. "get" seem mean "print". printing arrays omits elements default, avoid spewing thousands of lines output.

what apparently want adjust how arrays displayed. use numpy.set_printoptions(edgeitems=numpy.inf) show elements.

however, perhaps confused "..." in output mean --- means there data there, wasn't printed.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -