-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vlsvextract is broken for master version of vlsv files #175
Comments
This should also be fixed ykempf@126767a#commitcomment-11881298 |
I checked master/iowrite.cpp and it should write files that are compatible with master/vlsvextract. If this is not the case then I've forgotten something. |
I need more info to reproduce this. If I run, say, testpackage/trans_test on my laptop, I can extract the velocity mesh for population 'avgs' just fine. vlsvdiff works too.
My hunch is that you've tried to use new tools with old vlsv files that did not have correct footer stuff in place, but I can't be sure. So could someone please grab a vlsv file that does not work with the tools in master and copy-paste the footer here (I don't need the VARIABLE or PARAMETER arrays)? |
That is the point, it should support also old files without the new metadata. |
Well, that is going to branch the tools into "new version" and "old version" style again. You can always compile an older version of the tools and use those. I'll check if it is possible to fall back to the old style velocity mesh, if the new style fails. Now to think of it, it would be a good idea to move the tools to their own repository. Logically they are quite independent from the other code, practically definitions.h is the only included header. That way you could always revert back to older tools without accidentally compiling old Vlasiator too. |
It will, but the tools have to be able to support the range of files which are relevant. We also add more features, so the alternative would be to keep a number of separate branches for the tools up to date. It would also be unconvenient telling non-technical users that here are N versions of vlsvextract. Either try them all to see which works, or search for this or that feature in the xml footer. In this case I guess it is not so difficult. If it does not find any populations, it tries to read using the old format. What happened to the version tag? Again it would be convenient. We could have incremented it to 3 from 2, and then vlsvextract could from that check how to read the file. I was planning on moving them to the analysator repo to ave one repo for all vlasiator analysis tools. This was also discussed at the strategy meeting. This would also make them open source, which is good. |
Please try this: At least I got older testpackage/trans_test files extracted, I haven't touched vlsvdiff yet though. |
This is fixed |
It only writes out empty vlsv files for distribution functions. This is most likely related to fmihpc/analysator#22
We have to also support files without the new style of velocity mesh metadata for as long as science is being done with this generation of files, so at least a year or so.
The text was updated successfully, but these errors were encountered: