Skip to content

Latest commit

 

History

History
125 lines (70 loc) · 2.38 KB

TODO.org

File metadata and controls

125 lines (70 loc) · 2.38 KB

TODOs for matlab_wrapper

IPython notebook support

Documentation

Apply guidelines from writethedocs.org

http://docs.writethedocs.org/

Sphinx

Python hosted

CONTRIBUTING

  • small code snippet illustrating an issue
  • python setup.py develop –user
  • py.test

FAQ

  • matlab_root (modify PATH, ln -s)
  • /bin/csh

Spread the word

Show HN

reddit

  • python
  • matlab

comp.soft-sys.matlab

https://groups.google.com/forum/#!forum/comp.soft-sys.matlab

Python 3 support

Auto-detect the number of output arguments (nout)

Auto-convert int to float in matlab.put()

The problem is that in MATLAB this conversion is implicit and writing e.g.

matlab.put(‘a’, 1) # <- here ‘a’ will be int

may lead to unexpected behaviors.

Could be activated via by a parameters:

matlab = matlab_wrapper.MatlabSession(auto_int_conversion=True)

Make sure that the MATLAB process is gone in __del__()

  • add `matlab._pid’ (use features(‘getpid’) in MATLAB, might not exist in older versions)
  • check the standard library for the best kill/terminate functions

<2014-08-14 Thu>

MATLAB is unresponsive during execution of svd(). I did not find a way to reasonably kill the process (in destructor), because it hangs in the engClose().

m.workspace.svd(np.zeros((10000,10000)))
### Get MATLAB PID
try:
    pid = self.workspace.feature('getpid')
    self._pid = int(pid)
except RuntimeError:
    self._pid = None

Check for /bin/csh on Linux

/bin/csh is required by libeng and the lack of it could be detected by matlab_wrapper.

<2014-09-29 Mon>

Enable 32-bit versions

ralili mentioned that it seem to be working on Windows 7, where:

lib_dir = join(matlab_root, “bin”, “win32”)

Proper handling of char arrays (strings)

The equivalent type of MATLAB’s strings (char arrays) should be ndarray with dtype=S.

At the moment MATLAB’s multidimensional char array conversion to Python is not correct.

Error when getting empty Matlab object

Issue #6 by Jeremy Moreau

Explicit warning when using Python 3

Setup a mailing list