Currently the calculate_emission_rate() function is a bit of a monster (300+ lines long), it may be worth splitting out the calculations for each of the flow modes to their own functions.
This would also make testing easier (these functions could be tested in an isolated way)
Currently the
calculate_emission_rate()
function is a bit of a monster (300+ lines long), it may be worth splitting out the calculations for each of the flow modes to their own functions. This would also make testing easier (these functions could be tested in an isolated way)