zkit.io.ts

Read ts_<inp>.h5 files produced by PETSc TS viewer.

zkit.io.ts.read_timeseries(path)

Read PETSc TS snapshot file.

PETSc TSView typically writes a group timestepper containing numbered snapshots or a flat layout. This reader returns the available step indices as times.

Parameters:

path (str | Path)

Return type:

TSSeries