Giter Club home page Giter Club logo

Comments (10)

xogeny avatar xogeny commented on August 29, 2024

Thomas,

One thing I notice. In your case you are opening files in "tests". But I'm not sure how you are testing this. Are you using the targets in the Makefile? Because if you were running the tests through the Makefile, the tests should be in a directory called test_output. So I'm wondering if perhaps some of the issues you are seeing might be because of some potential interaction with the material in the tests directory.

from recon.

tbeu avatar tbeu commented on August 29, 2024

Test is using Python console. Dir "tests" should not matter.

from recon.

xogeny avatar xogeny commented on August 29, 2024

Just as a note (mostly to myself), I've confirmed that I cannot reproduce this bug on the Mac. I'll check Linux and Windows when I get a chance.

from recon.

tbeu avatar tbeu commented on August 29, 2024

For sake of completeness: http://www.FastShare.org/download/dsres.zip

from recon.

tbeu avatar tbeu commented on August 29, 2024

Some more debugging

>>> ind = table.indices['time']['i']
>>> ind
568
>>> blen = table.indices['time']['l']
>>> blen
1483

Not sure if the error is already in the file. I guess that blen is wrong here.

from recon.

xogeny avatar xogeny commented on August 29, 2024

OK, another data point. I tried this under Linux. Again, unable to reproduce the issue (both with and without compression). I'm going to look at your sample files to see if I can spot any differences. I get the same values for i and l that you show above. Why do you think blen is wrong? It is a little strange that the l value is different for different signals, but msgpack tries to be clever about storage, so it is possible for vectors of the same size to have different lengths when packed.

One thing I noticed...you ran this on a 32-bit version of Windows. I'm wondering if that has something to do with it... ?

from recon.

xogeny avatar xogeny commented on August 29, 2024

OK, a bit more information. Under Linux, I cannot read the dsres.mld file you sent me. In fact, it fails in exactly the same place. So it appears the issue is in the writing, not the reading. As a test, here is the dsres.mld file I wrote under Linux. It would be interesting to see if it could be read under Windows (this would further point the finger at writing as the issue under Windows):

https://dl.dropboxusercontent.com/u/126298/dsres.mld

from recon.

xogeny avatar xogeny commented on August 29, 2024

OK, even more details. When I print the header of a file generated under Linux, I get the following index and length for time: {'i': 568, 'l': 1483}. I get the same data for a file generated under Windows. However, the next signal (according to the vars array) in both cases is der(i_L). Under Linux, the data for this signal is: {'i': 2051, 'l': 2444}. But, the data for this signal under Windows is {'i': 2056, 'l': 2444}. The Windows value is wrong since 568+1483=2051. So somehow the Windows version is writing the wrong index (off by 5?). The Windows signals consistently start at the wrong index!

from recon.

tbeu avatar tbeu commented on August 29, 2024

Fix confirmed. Thanks.

from recon.

xogeny avatar xogeny commented on August 29, 2024

For reference, the fix was committed in 50c48a0

from recon.

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.