factor_agent.snapshot.RunSnapshot#

class RunSnapshot(run_dir, manifest)[source]#

Bases: object

The snapshot of a run directory; build it with open or read.

files maps each name to its copy, in the order the run was first given them; versions lists the code versions of every opening.

Methods#

RunSnapshot.differences

How the files of search and the settings differ from the recorded ones; empty when they do not.

RunSnapshot.exists

Whether run_dir has a snapshot.

RunSnapshot.open

Open run_dir with the files of search, the code versions it runs on and its settings.

RunSnapshot.path

The snapshot's copy of the file name.

RunSnapshot.read

The snapshot of run_dir as it is, recording nothing.

RunSnapshot.version_change

What differs between versions and the last recorded code versions, as open warns of it; None if nothing.

Attributes#

RunSnapshot.search_files#

The snapshot’s copies, as the files the run searches with.