runtraj.transforms.Oxidation.field#
- Oxidation.field(directory=None)[source]#
Return the oxidant field, read from its file.
The file is read into memory once per process and again only when it changes. A relative
oxidantpath starts from directory.- Raises:
ValueError – If
oxidantis a constant, or the file has no such variable.FileNotFoundError – If the file does not exist.
- Return type:
- Parameters: