---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-3-566e6e409dd3> in <module>()
----> 1 get_ipython().run_cell_magic(u'matlab', u'-i s -o obj', u'obj.s = s')
/home/cekees/proteus/linux2/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_cell_magic(self, magic_name, line, cell)
2141 magic_arg_s = self.var_expand(line, stack_depth)
2142 with self.builtin_trap:
-> 2143 result = fn(magic_arg_s, cell)
2144 return result
2145
/home/cekees/proteus/linux2/lib/python2.7/site-packages/pymatbridge/matlab_magic.pyc in matlab(self, line, cell, local_ns)
/home/cekees/proteus/linux2/lib/python2.7/site-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
/home/cekees/proteus/linux2/lib/python2.7/site-packages/pymatbridge/matlab_magic.pyc in matlab(self, line, cell, local_ns)
267 for output in ','.join(args.output).split(','):
268 self.shell.push({output:self.matlab_converter(self.Matlab,
--> 269 output)})
270 else:
271 raise RuntimeError(no_io_str)
/home/cekees/proteus/linux2/lib/python2.7/site-packages/pymatbridge/matlab_magic.pyc in matlab_converter(matlab, key)
86 maxtime=matlab.maxtime)
87
---> 88 return loadmat('%s/%s.mat'%(tempdir, key))
89
90
/home/cekees/proteus/linux2/lib/python2.7/site-packages/pymatbridge/matlab_magic.pyc in loadmat(fname)
67
68 f = h5py.File(fname)
---> 69 data = f.values()[0][:]
70 if len(data.dtype) > 0:
71 # must be complex data
/home/cekees/proteus/linux2/lib/python2.7/site-packages/h5py/_hl/group.pyc in __getitem__(self, name)
151 raise ValueError("Invalid HDF5 object reference")
152 else:
--> 153 oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
154
155 otype = h5i.get_type(oid)
/home/cekees/proteus/linux2/lib/python2.7/site-packages/h5py/_hl/base.pyc in _e(self, name, lcpl)
111 else:
112 try:
--> 113 name = name.encode('ascii')
114 coding = h5t.CSET_ASCII
115 except UnicodeEncodeError:
AttributeError: 'slice' object has no attribute 'encode'