Code Monkey home page Code Monkey logo

Comments (3)

arokem avatar arokem commented on May 21, 2024

Considering that this might be a communication issue, let's revisit this
after merging the new ZMQ communication stuff.

On Mon, Jan 20, 2014 at 2:22 PM, Chilichiller [email protected]:

The following lines are copied from a notebook console. Exporting fails if
the same filename is used for differently shaped data. There is no error
message, but still the old data is in memory in python, see the example
below. The HDF5 data on file gets updated correctly, so the bug must occur
when importing to python.

By the way, what also looks like a bug is actually fine: The dimension in
Matlab in the example is (4,3) and in Python (3,4). As Matlab stores the
data column wise in memory and Python does so row wise, the data does not
have to be resorted and is thus probably faster.

Here the example:

import pymatbridge as pymat
ip = get_ipython()
pymat.load_ipython_extension(ip)

%%matlab -o c
c = rand(4,3);

%%matlab -o c
c = rand(4,4);

c.shape
(3, 4)


Reply to this email directly or view it on GitHubhttps://github.com//issues/40
.

from python-matlab-bridge.

mpollow avatar mpollow commented on May 21, 2024

Sounds good to me. Let me know when the new version is merged.
Thanks for your effort.

Am 22.01.2014 um 23:51 schrieb Ariel Rokem [email protected]:

Considering that this might be a communication issue, let's revisit this
after merging the new ZMQ communication stuff.

On Mon, Jan 20, 2014 at 2:22 PM, Chilichiller [email protected]:

The following lines are copied from a notebook console. Exporting fails if
the same filename is used for differently shaped data. There is no error
message, but still the old data is in memory in python, see the example
below. The HDF5 data on file gets updated correctly, so the bug must occur
when importing to python.

By the way, what also looks like a bug is actually fine: The dimension in
Matlab in the example is (4,3) and in Python (3,4). As Matlab stores the
data column wise in memory and Python does so row wise, the data does not
have to be resorted and is thus probably faster.

Here the example:

import pymatbridge as pymat
ip = get_ipython()
pymat.load_ipython_extension(ip)

%%matlab -o c
c = rand(4,3);

%%matlab -o c
c = rand(4,4);

c.shape
(3, 4)


Reply to this email directly or view it on GitHubhttps://github.com//issues/40
.


Reply to this email directly or view it on GitHub.

from python-matlab-bridge.

arokem avatar arokem commented on May 21, 2024

OK - sorry for how long this has taken. This seems resolved now

from python-matlab-bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.