ess.reduce.nexus.merge.MergePlan#

class ess.reduce.nexus.merge.MergePlan(files, issues, stamps)[source]#

Runs to merge, and what the checks found. Holds no data of the runs.

Make one with plan_merge().

__init__(files, issues, stamps)#

Methods

__init__(files, issues, stamps)

write(output)

Write the merged file.

Attributes

errors

files

The files of the runs, absolute, in the order of their start times.

issues

stamps

Size and modification time of each file, to detect a changed file.

files: tuple[Path, ...]#

The files of the runs, absolute, in the order of their start times.

stamps: tuple[tuple[int, int], ...]#

Size and modification time of each file, to detect a changed file.

write(output)[source]#

Write the merged file.

The file is written under a temporary name next to output and renamed when complete, so output never holds a partial file.

Parameters:

output (Path | str) – Path of the merged file. Must not exist.

Returns:

Path – output.

Raises: