-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move ogusa/parameter_plots.py to og_uk_calibrate/parameter_plots.py #9
Comments
@rickecon This is worth some discussion, I think. Since each calibration repo needs to put parameters in the same format (so they can be input into OG-MOD) and since OG-USA (soon to be OG-MOD) will be a dependency of each OG calibration repo, would it be helpful to avoid duplicate code keeping the parameter plots with OG-MOD? This issue of duplicated code comes up in other places too: e.g., Should we try to make efforts to keep functions that will be common to all calibration repos in the OG-MOD package? I would say "yes" as it reduces the costs associated with maintaining these functions. |
Ah, I see an issue with some of the parameter plots. When you plot the data, it maybe in a different format (e.g., in Still, there may be a way around this (e.g., passing an matplotlib axis object to represent the data to the general, OG-MOD plotting function). |
@jdebacker The principle you outline is correct. All functions that are common across countries should be centralized in OG-MOD. In the case of |
PR #2 uses
ogusa/parameter_plots.py
in thetxfunc.py
module. PR #3 creates aparameter_plots.py
file in theog_uk_calibrate/
directory. We should make all parameter plots go through theog_uk_calibrate/
directory so that file can be modified for each country.@jdebacker
The text was updated successfully, but these errors were encountered: