Skip to content

Latest commit

 

History

History
367 lines (235 loc) · 8.45 KB

TODO.org_archive

File metadata and controls

367 lines (235 loc) · 8.45 KB

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

CANCELED IPython notebook support

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

CANCELED IPython notebook support

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

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

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

CANCELED Spread the word

Show HN

reddit

  • python
  • matlab

comp.soft-sys.matlab

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

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

CANCELED Python 3 support

Better make a new library for Python 3 with the following properties:

Review PR #7 from David

#7

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

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

Canceled: “Explicit is better than implicit”

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)

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

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

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

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

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>

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

Enable 32-bit versions

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

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

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

Error when getting empty Matlab object

Issue #6 by Jeremy Moreau

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

Setup a mailing list

matlab_wrapper@googlegroups.com

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

CANCELED Investigate `undefined symbol’ error

Canceled: not able to reproduce.

Might have something to do with matplotlib.

Eventually put in FAQ.

790 “”” 791 def __init__(self, name, **kwargs): –> 792 self._lib = ctypes.CDLL(name, **kwargs) 793 794 if ‘libeng’ in name:

/usr/lib/python2.7/ctypes/__init__.pyc in __init__(self, name, mode, handle, use_errno, use_last_error) 363 364 if handle is None: –> 365 self._handle = _dlopen(self._name, mode) 366 else: 367 self._handle = handle

OSError: /nfs/system/opt/MATLAB/R2014b/bin/glnxa64/libicuio.so.52: undefined symbol: _ZN6icu_5213UnicodeString9doReplaceEiiPKDsii

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

Investigate indexing in Numpy and MATLAB

https://groups.google.com/forum/#!topic/matlab_wrapper/wAp6veM6xgY

Numpy indexing comes form C.

In carr[i][j][k], k iterates the most inner row arrays.

arr.ravel(‘K’) flattens array in the order the elements occur in the memory.

matlab_wrapper has to take into account inverse indexing:

[i][j][k][l] <=> [l][k][j][i]

as well as row vs column of the inner most arrays:

[i][j][k][l] <=> [k][l][j][i]

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

Create DOI for referencing

https://zenodo.org/badge/latestdoi/24233/mrkrd/matlab_wrapper

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

Conversion of a struct (#18)

#18

notmuch:id:/issues/18/274494320@github.com

  • backward compatibility is super important
  • possible solution is to disable squeeze’ing in a backward compatible way, e.g., MatlabSession(squeeze=False)

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

Dimension of cellarrays (#19)

#19

fixed by PR #20

Archived entries from file /home/marek/projects/matlab_wrapper/TODO.org

Python 3 tests (#23)

#23