Comments (10)
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.
Test is using Python console. Dir "tests" should not matter.
from recon.
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.
For sake of completeness: http://www.FastShare.org/download/dsres.zip
from recon.
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.
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.
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.
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.
Fix confirmed. Thanks.
from recon.
For reference, the fix was committed in 50c48a0
from recon.
Related Issues (20)
- Add discussion to the paper about handling optional kinds of data
- Add argparse to wall_info script
- Create scripts to convert wall to meld HOT 1
- Create a script to convert dsres to meld HOT 1
- LICENCE file missing HOT 1
- Native MATLAB/Octave implementation
- Javascript implementation
- Look at u-msgpack-python HOT 1
- TypeError on fullRobot.mld HOT 10
- Add argument parsing support to scripts
- Should DyMat (and SciPy) be added to install_requires? HOT 3
- Reduce entry overhead
- Use msgpack for everything HOT 10
- Look at wall2meld performance
- Avoid invalid files by error-prone mode flags of open HOT 5
- Use msgpack for transformations
- Register recon formats as media types HOT 1
- Update pyrecon on PyPI
- Register Content Type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recon.