-
Notifications
You must be signed in to change notification settings - Fork 70
Stress test failing, giving start year warning #326
Comments
This error means that the first year in the portfolio passed to the stress test does not match the start year of the analysis. Without having seen the data, my best guess is that only data from some scenario that I am filtering out is given.. |
Ah right this is the only output? Yes I guess we should see whether there's an alternative solution here. |
yea, the output was a one liner in this case. Regardless, we should add checks both to the PACTA part and the stress test part that look at some minimum expected content in these files. We should think about what that is, might not be so straight forward. But I think that would be really helpful because it will lead to less errors seemingly coming from other parts of the scripts |
Did we resolve this? I looked for a PR that closed this but didn't find one! |
@Clare2D not explicitly.. (1) I think this requires a decision however on what would make sense to still pass to the stress test, i.e. a minimum required Pacta result as ST input. Which is not yet defined. (2) The problem lined out here was still that an empty result was being written for Equity, which is a PACTA side issue. Especially the fact that it was only written for one of the two allocation methods. So I would suggest we rename the issue and/or make follow up issues. |
I suggest we split this into its follow up issues :) |
follow up for the stress test: https://github.com/2DegreesInvesting/StressTestingModelDev/issues/101 |
follow up for PACTA output checks: #337 |
Due to the urgency, I will add an intermediate fix |
I can't replicate this issue anymore. It seems like the missing PACTA data were an idiosyncrasy of an earlier, less stable version. When I rerun this user's analysis, I get expected PACTA results and stress test results without failure. Unless someone else can replicate the problem, I would close this issue again. @Clare2D |
Unknown error occurs with user_id 77 which seems to cause an alternative failure type
`-- running for: 77 (test #77) --------------------------------------------------
-- web_tool_script_1.R ---------------------------------------------------------
-- web_tool_script_2.R ---------------------------------------------------------
Loading PACTA.analysis
[1] "Calculate Stress Test for Equity Portfolio"
Error in check_portfolio_consistency(.) :
Start year of the analysis and first year in the input portfolio do not match.`
The text was updated successfully, but these errors were encountered: