xtk / X

The X Toolkit
http://www.goXTK.com
Other
793 stars 265 forks source link

Required TRK file properties for XTK #148

Open mih opened 10 years ago

mih commented 10 years ago

I wanted to replicate doc lesson 06 (http://jsfiddle.net/gh/get/toolkit/edge/xtk/lessons/tree/master/06/) with my own data, but XTK doesn't display anything -- no error message either. Quick community feedback reveals that I am not the only one with this problem, and that the file in question works well with Trackvis.

Does XTK rely on specific properties of TRK files to work?

Here is the link to the origin of the feedback thread:

http://mail.scipy.org/pipermail/nipy-devel/2014-March/009995.html

Here is an example file that works in Trackvis, but not with XTK:

http://kumo.ovgu.de/~mih/tensor_streamlines.trk

Thanks!

NicolasRannou commented 10 years ago

Hi Michael,

Could you post the question on stackoverflow so it would benefit all XTK users?

The problem is that right now, XTK looks for n_countint4Number of tracks stored in this track file.0 means the number was NOT stored.

Which in your case is '0'.

We do not support this case yet. We will try to fix it ASAP, but please feel free to contribute and fix it :)

See https://github.com/xtk/X/blob/master/io/parserTRK.js line 115

Thanks, Nicolas

On Sat, Mar 29, 2014 at 4:24 AM, Michael Hanke notifications@github.comwrote:

I wanted to replicate doc lesson 06 ( http://jsfiddle.net/gh/get/toolkit/edge/xtk/lessons/tree/master/06/) with my own data, but XTK doesn't display anything -- no error message either. Quick community feedback reveals that I am not the only one with this problem, and that the file in question works well with Trackvis.

Does XTK rely on specific properties of TRK files to work?

Here is the link to the origin of the feedback thread:

http://mail.scipy.org/pipermail/nipy-devel/2014-March/009995.html

Here is an example file that works in Trackvis, but not with XTK:

http://kumo.ovgu.de/~mih/tensor_streamlines.trk

Thanks!

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