File: gendata.py

package info (click to toggle)
python-scipy 0.10.1%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 42,232 kB
  • sloc: cpp: 224,773; ansic: 103,496; python: 85,210; fortran: 79,130; makefile: 272; sh: 43
file content (6 lines) | stat: -rw-r--r-- 164 bytes parent folder | download
1
2
3
4
5
6
import numpy as np
from scipy.io import loadmat

m = loadmat('test.mat', squeeze_me=True,  struct_as_record=True,
        mat_dtype=True)
np.savez('test.npz', **m)