This PR adds additional validation checks for the gross-to-net conversion process. This fixes CAR-1879, CAR-1880, CAR-1873. Specifically:
After gross generation and net generation data are merged for each subplant-month, warn if there is zero gross generation associated with positive net generation, or zero net generation associated with positive gross generation. This indicates that there might be an issue with the subplant mapping, net generation allocation, or the input data itself.
After calculating annual plant GTN ratios, flag any plants where the GTN ratio is > 1.25, that is whenever net generation is substantially higher than gross generation. This likely indicates an issue with the source data.
Adds more helpful text to validate_gross_to_net_conversion by listing the gtn methods used to convert the data next to any flagged data.
Other changes:
Previously, we had been filling missing GTN ratios with zeros. However, we want to keep these as missing values so that they can be flagged by our checks. This PR removes the fillna(0) for these ratios.
This PR adds additional validation checks for the gross-to-net conversion process. This fixes CAR-1879, CAR-1880, CAR-1873. Specifically:
validate_gross_to_net_conversion
by listing the gtn methods used to convert the data next to any flagged data.Other changes:
fillna(0)
for these ratios.Todo:
Example of what one check:![image](https://user-images.githubusercontent.com/45949268/222306599-990520b0-ae09-47fd-856e-2ab6c5347864.png)
Example of the other check: