easier test, improve descriptions

This commit is contained in:
Justus Kuhlmann 2026-05-20 15:26:02 +02:00
commit 0e77fab557
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -250,7 +250,7 @@ def _extract_flowed_energy_density(path, prefix, dtr_read, xmin, spatial_extent,
dtr_read : int dtr_read : int
Determines how many trajectories should be skipped Determines how many trajectories should be skipped
when reading the ms.dat files. when reading the ms.dat files.
Corresponds to dtr_ms (dnms) in the openQCD input file. Corresponds to dtr_cnfg (dncnfg) in the openQCD input file.
xmin : int xmin : int
First timeslice where the boundary First timeslice where the boundary
effects have sufficiently decayed. effects have sufficiently decayed.
@ -377,8 +377,8 @@ def _extract_flowed_energy_density(path, prefix, dtr_read, xmin, spatial_extent,
for current in range(0, len(item), tmax)]) for current in range(0, len(item), tmax)])
diffmeas = configlist[-1][-1] - configlist[-1][-2] diffmeas = configlist[-1][-1] - configlist[-1][-2]
if not np.isclose(configlist[-1][0] / diffmeas, int(configlist[-1][0] / diffmeas), 1e-12): if not all(c % diffmeas == 0 for c in configlist[-1]):
raise ValueError("Spacing of the first configuration after thermalization is irregular.") raise ValueError(f"Irregular spacing of configurations in {ls[rep]}, determined stepsize does not divide all trajectory steps.")
configlist[-1] = [item // diffmeas for item in configlist[-1]] configlist[-1] = [item // diffmeas for item in configlist[-1]]
if kwargs.get('assume_thermalization', True) and configlist[-1][0] > 1: if kwargs.get('assume_thermalization', True) and configlist[-1][0] > 1:
warnings.warn('Assume thermalization and that the first measurement belongs to the first config.') warnings.warn('Assume thermalization and that the first measurement belongs to the first config.')