-
Notifications
You must be signed in to change notification settings - Fork 51
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
how to rescale axis lengths to work around downstream bugs? #1579
Comments
Can |
You can try manipulating |
It looks like the plugin is in the Paraview repository (https://gitlab.kitware.com/paraview/paraview/-/blame/master/Wrapping/Python/paraview/algorithms/openpmd.py#L414). These two lines starting at
|
I don't think this provides a solution. Since the openPMD plugin always passes coordinates to Paraview in SI units, rescaling It would be possible to work around the Paraview bug by rescaling I am working on a MR for Paraview that allows for an additional parameter in the *.pmd text file that gives a rescaling factor here: https://gitlab.kitware.com/paraview/paraview/-/merge_requests/6646 |
On macOS, it is not possible to edit the contents of Paraview.app/ due to code-signing restrictions. Working around this bug therefore requires building Paraview from source following these instructions: https://github.com/Kitware/ParaView/blob/master/Documentation/dev/build.md#macos. Unfortunately, it does not build out of the box since it is incompatible with Python 3.12. I had to manually patch the source to get it to build: fix-mpi4py-cython-python3.12.patch With these workarounds, it finally works. I hope Kitware will fix Paraview, since this was not ideal. |
VTK is now fixed so that it builds with Python 3.12. Paraview still needs a submodule bump. |
@ax3l Can you review this PR for Paraview: https://gitlab.kitware.com/paraview/paraview/-/merge_requests/6646? |
You can rescale these constants in a way that your box when multiplied with them has unit size, no? |
I do not want to go this way to pass it in the |
Yes, but then the metadata implies it has SI dimensions of 1 m along each axis, which is wrong. |
What do you want to achieve, please describe.
I want to be able to use Paraview to examine openPMD datasets that have very large axis lengths, say 1e20.
However, due to a bug, Paraview cannot render such boxes. See https://gitlab.kitware.com/paraview/paraview/-/issues/21371.
The last resort seems to be i) to rescale the data and write a new file, or ii) rescale the axis lengths dynamically when reading. Is there a straightforward way to do either of these, or do I need to rescale the axis lengths in the simulation code when writing?
Software Environment:
Have you already installed openPMD-api?
If so, please tell us which version of openPMD-api your question is about:
The text was updated successfully, but these errors were encountered: