Skip to content
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

[BUG] Xdmf TimeSeriesWriter h5 location #1442

Open
MagunRa opened this issue Oct 13, 2023 · 0 comments · May be fixed by #1461
Open

[BUG] Xdmf TimeSeriesWriter h5 location #1442

MagunRa opened this issue Oct 13, 2023 · 0 comments · May be fixed by #1461

Comments

@MagunRa
Copy link

MagunRa commented Oct 13, 2023

meshio.xdmf.TimeSeriesWriter writes the h5 file in the wrong location. Instead of writing it in the same folder as the xdmf it is written into the folder of the calling script.

The issue seems to be in time_series.py:265
instead of

self.h5_filename = self.filename.stem + ".h5"
self.h5_file = h5py.File(self.h5_filename, "w")

it should be something like

self.h5_filename = self.filename.with_suffix(".h5")
self.h5_file = h5py.File(self.h5_filename, "w")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant