Module flow

Source
Expand description

Code for reading process flows file

Structs§

ProcessFlowRaw 🔒

Constants§

PROCESS_FLOWS_FILE_NAME 🔒

Functions§

read_process_flows
Read process flows from a CSV file
read_process_flows_from_iter 🔒
Read ‘ProcessFlowRaw’ records from an iterator and convert them into ‘ProcessFlow’ records.
validate_flows 🔒
Validate that no process has multiple flows for the same commodity.
validate_pac_flows 🔒
Validate that the PACs for each process are either all inputs or all outputs.