GithubHelp home page GithubHelp logo

Comments (3)

tbeu avatar tbeu commented on September 1, 2024

Thanks for reporting! What exatly do you meean by "no longer"? Do you have a reference version where it worked last? Did you run git bisect to locate the bad commit? Could you please also provide the code snippet how to generate the file such that I can add it to the acceptance tests? Thanks again.

from matio.

SciCed avatar SciCed commented on September 1, 2024

We are upgrading from Matio 1.5.9 to 1.5.27 which is a big step :)
I did not use git bisect, but I investigated the code, and if I've well understood the v4 format, sparse data are stored in a "table" with one line by non-zero values and an extra line that contains the sparse dimension.

The condition on dimensions is now checking that there are at least two rows, that is not true in case of sparse that contains only null values.
see mat4.c:368 in 1.5.27

if ( matvar->dims[0] < 2 ) {
    return MATIO_E_FILE_FORMAT_VIOLATION;
}

I think that commit introduced the bug aefd09e

The file has been generated by Scilab, which does not use matio to generate mat files in v4 format.
Here is the Scilab code:

spbs = sparse(0);
file = TMPDIR + "/spbs.mat";
savematfile(file, "-v4", "spbs");

from matio.

tbeu avatar tbeu commented on September 1, 2024

Bug confirmed and fixed by 9befe4c.

from matio.

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.