Skip to content

[BUG] Xdmf TimeSeriesWriter h5 location #1442

@MagunRa

Description

@MagunRa

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions