jrising / prospectus-tools

Tools for processing results of the Climate Prospectus
MIT License
2 stars 7 forks source link

cannot extract values csvs using the most recent version of the master branch #19

Closed manorman5 closed 4 years ago

manorman5 commented 5 years ago

hey @brews and @jrising , sorry to bother you both again. I ran into an issue extracting value csvs on the master branch. When I go back to commits pre the results.sum_into_data function, I do not have this issue. I wrote up a couple fixes on this branch. I made a slight modification to quantiles.py, so it could receive a years variable from results.sum_into_data and two minor tweaks to the results.sum_into_data function. I doubt these will be the long term solutions to the two bugs I ran into, but I tried 🙃 .

brews commented 5 years ago

+1 to @mayaanorman for working out a solution on your own (even a temporary one)!

Real quick:

manorman5 commented 5 years ago

hey @brews! My configs/quantiles call for extracting point estimate (vs variance) valuescsvs worked at this commit. Sorry I know that is awhile back. I had trouble deciphering which commit I could go back to that wasn't contaminated with delta method updates. I went back really far to convince myself that my inputs were probably not causing the problem :).

So there were three bugs I "fixed":

Errors were thrown for all of these issues as I worked through them. It will take me a little bit of time to regenerate all of them, but if that would be helpful I can definitely do that. Sorry I should have copied them down as they were received.

To run into the first two bugs here are the commands and configs I used--

bash command:

python -u quantiles.py <path to config>/energy-extract-impactpc-median_OTHERIND_electricity.yml  --region=ARE.3 --suffix=_ARE.3_impactpc_median_fulladapt FD_FGLS_inter_climGMFD_Exclude_all-issues_break2_semi-parametric_poly2_OTHERIND_electricity_TINV_clim_income_spline -FD_FGLS_inter_climGMFD_Exclude_all-issues_break2_semi-parametric_poly2_OTHERIND_electricity_TINV_clim_income_spline-histclim

config:

results-root: /shares/gcp/outputs/energy/impacts-blueghost/median_OTHERIND_electricity_TINV_clim_income_spline_GMFD
output-dir: /shares/gcp/social/parameters/energy/extraction/multi-models/rationalized_code/break2_Exclude_all-issues_semi-parametric/TINV_clim_income_spline_GMFD/median_OTHERIND_electricity_TINV_clim_income_spline_GMFD/impactpc
file-organize: [ssp, region]
do-montecarlo: no
only-rcp: null
only-models: all
only-iam: null
column: rebased
output-format: valuescsv

To run into the last bug (after I got through the first two) here are the commands and configs I used -- bash command:

python -u quantiles.py <path to config>/energy-extract-impactpc-median_OTHERIND_electricity_dm.yml  --region=ARE.3 --suffix=_ARE.3_impactpc_median_fulladapt_dm FD_FGLS_inter_climGMFD_Exclude_all-issues_break2_semi-parametric_poly2_OTHERIND_electricity_TINV_clim_income_spline -FD_FGLS_inter_climGMFD_Exclude_all-issues_break2_semi-parametric_poly2_OTHERIND_electricity_TINV_clim_income_spline-histclim

config:

results-root: /shares/gcp/outputs/energy/impacts-blueghost/median_OTHERIND_electricity_TINV_clim_income_spline_GMFD_dm
output-dir: /shares/gcp/social/parameters/energy/extraction/multi-models/rationalized_code/break2_Exclude_all-issues_semi-parametric/TINV_clim_income_spline_GMFD/median_OTHERIND_electricity_TINV_clim_income_spline_GMFD/impactpc
file-organize: [ssp, region]
do-montecarlo: no
only-rcp: null
only-models: all
only-iam: null
deltamethod: true
column: rebased
output-format: valuescsv

Let me know if you have questions!

PS: sorry for submitting this so many times... im not used to the key bindings happening rn 🙃

brews commented 5 years ago

@mayaanorman This is excellent! I may not be able to get to this immediately but this makes it much easier for me to replicate and dig into this. Thanks so much!

brews commented 4 years ago

Hey @mayaanorman, I'm checking our issue backlog. Are you still having this issue?

manorman5 commented 4 years ago

hey @brews! @jrising and I wrapped this up issue up with this pull request. Sorry i should have closed this issue!