Comments (7)
I agree with @xylar in that we should be careful to not degrade current use cases. Making the output mode configurable, defaulting to current mode, would be perfectly fine with me though.
While not space-efficient in itself, the base64 mode would also allow adding inline gzipping of the data, IIRC. That would be a real long-term benefit for us I think.
from pyevtk.
I've never even considered that the output files might not be valid XML since all my (only VTK standard following apparently) consumers happily accept them. I also didn't know that meshio doesn't fully support the VTK standard then, nor that Kitware managed to define a standard that uses xml and isn't fully compliant. Great stuff 🙄
So as far I understood, the only upside of using 'appended-raw' is that the implementation is less complex. Is that correct?
And aside from the implementation being trickier, there's no downside to using 'appended-binary', right?
from pyevtk.
You are right. In the end, it shouldn't be that hard to rewrite the appending routines. But one has to dig through all that serialization and base64 stuff...
from pyevtk.
My main aim would be to produce files, that meshio
can read.
from pyevtk.
I cannot really justify pushing time into helping with the implementation, but if you can and want to, I could invest a little time in making the test setup better. I've already pushed a quick & dirty check to the generated examples into the xml_checks
branch.
from pyevtk.
Another idea:
If we drop the use of appended and write the dataArray directly at their position of occurrence in the file, we don't have to estimate the offset in the appended data.
Only downside: the file isn't that readable anymore as before, where the data-metainfo was stored at the top of the file and the actual data was appended.
@renefritze , @xylar: would you have any problems with that approach?
from pyevtk.
I think having the file be readable has saved me some debugging trouble in the past but I don't have strong feelings about it.
Regarding base64
encoding, won't it by definition have to take up 4 times as much space, since you're only allowed to use 64 of the 256 values of a given byte? If so, I would be opposed to just switching to base64
as opposed to making that the default option but continuing to support the existing functionality even if it is not valid XML (since it works great in ParaVeiw).
from pyevtk.
Related Issues (16)
- structured grid normal reversed HOT 13
- Enhancement: export field data HOT 2
- Enhancement: Time Series HOT 1
- 1.0.2 wheel for py3? HOT 7
- Update PyPI version HOT 3
- Automic deploy keeps failing
- Dataset attributes bug
- Cannot install from tarball HOT 9
- Name for Blocks (Datasets) in Collection (Multi-Block Dataset)
- imageToVTK is not able to determine lower dimension grids from given cell-data
- Stepping down as maintainer HOT 10
- File generated by VtkGroup can not be loaded into paraview.
- Add a conda recipe HOT 5
- The official version of PyEVTK has moved HOT 19
- meshio 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 pyevtk.