factor_agent.web.run_view.RunView.read#

classmethod RunView.read(run_dir, now=None, name=None)[source]#

Read the run in run_dir.

Parameters:
run_dirstr or Path

A run directory: one holding a snapshot.json.

nowdatetime, optional

The time the view describes; the current time by default.

namestr, optional

The run’s name in the view; the directory’s name by default.

Returns:
RunView
Raises:
FileNotFoundError

When run_dir holds no snapshot.json.