piglot.solver.links.fields.Reaction
- class Reaction(field: str, group: int = 1)[source]
Bases:
OutputFieldReaction outputs reader.
Methods
Sanity checks on the input file.
Reads reactions from a Links analysis.
Read the output field from the configuration dictionary.
- check(input_data: InputData) None[source]
Sanity checks on the input file.
This checks if: - we are reading the reactions of a macroscopic analysis; - the file has NODE_GROUPS outputs.
Parameters
- input_dataInputData
Input data for this case.
Raises
- RuntimeError
If not reading a macroscopic analysis file.
- RuntimeError
If reaction output is not requested in the input file.