PlasmaCalcs.hookups.eppic.eppic_io_tools.read_timers_dat

PlasmaCalcs.hookups.eppic.eppic_io_tools.read_timers_dat(dir='.', filename='domain0000/timers.dat', *, fix_snaps=True, as_array=False)
read timers.dat info into an xarray.Dataset.
The “iter #” will be used as the time coordinate, but renamed to “it”.
filename: str
path to timers.dat file.
if can’t find it, but it has ‘domain000’ or ‘domain0000’, check the other one.
E.g. ‘domain0000/timers.dat’ doesn’t exist –> check if ‘domain000/timers.dat’ exists.
fix_snaps: bool
whether to fill NaNs if the last snap is missing from timers.dat, but in parallel folder,
which can occur if run crashes after saving snap but before writing to timers.dat.
as_array: bool
whether to use xarray.Dataset.to_array() to return a DataArray instead of Dataset.
if True, vars from Dataset will be concatenated along the new dimension named ‘timer’.