Add first draft of a backtest script. This is for running PVNet and the summation model for the UK GSP and national level predictions. Also includes some minor tidying.
[x] TODO test locally that it works
How Has This Been Tested?
This has been tested locally. I ran the script with the user variables set to the values they are set to in the script. This was two init-times and using the PVNet model and summation model which are currently on the dev branch. After running the backtest for these two init-times I checked them against the PVLive values and they seemed reasonable
To test with pytest would require a huge amount of build up and teardown to get it to work
Yea, it would be trickly to test with pytest, as you need a fair amount of fake data e.t.c. Its probably something to do in the future, but this is a great first step
Description
Add first draft of a backtest script. This is for running PVNet and the summation model for the UK GSP and national level predictions. Also includes some minor tidying.
How Has This Been Tested?
This has been tested locally. I ran the script with the user variables set to the values they are set to in the script. This was two init-times and using the PVNet model and summation model which are currently on the dev branch. After running the backtest for these two init-times I checked them against the PVLive values and they seemed reasonable
To test with pytest would require a huge amount of build up and teardown to get it to work
Checklist: