Output API¶
Module for handling crunching output tracking
This module handles checking whether a file has already been crunched and if its source files have been updated since it was last crunched.
-
class
netcdf_scm.output.
OutputFileDatabase
(out_dir)[source]¶ Bases:
object
Holds a list of output files which have been written.
Also keeps track of the source files used to create each output file.
-
load_from_file
()[source]¶ Load database from
self.out_dir
- Returns
Handle to the loaded filepath
- Return type
- Raises
ValueError – The loaded file contains more than one entry for a given filename
-