Input and output files

All file objects, whether input or output, inherit from the abstract class File and all of its methods.

class tradssat.tmpl.InpFile(file)[source]

Parent class for all input files, as well as for Summary.OUT.

changed()[source]

Checks whether the file has been edited and needs to be rewritten.

Returns:Whether the file has been edited or not.
Return type:bool
classmethod matches_file(file)[source]

Checks whether a given file can be read by this class.

Parameters:file (str) – The filename or full path to be read.
Returns:True if the file matches; False otherwise.
Return type:bool
class tradssat.tmpl.OutFile(folder)[source]

Parent class for (nearly all) DSSAT output files.

classmethod matches_file(file)[source]

Checks whether a given file can be read by this class.

Parameters:file (str) – The filename or full path to be read.
Returns:True if the file matches; False otherwise.
Return type:bool