Skip to content
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

Quiet loud logging messages during basic runs. #13

Closed
brews opened this issue Sep 15, 2022 · 1 comment · Fixed by #14
Closed

Quiet loud logging messages during basic runs. #13

brews opened this issue Sep 15, 2022 · 1 comment · Fixed by #14
Labels
bug Something isn't working

Comments

@brews
Copy link
Member

brews commented Sep 15, 2022

Running through the basic README example in github.com/climateimpactlab/dscim-epa, we get lots of hard-to-read and obtuse messages printed to STDOUT (e.g. [1.016010255, 9.149608e-05] 2020 CAMEL_m1_c0.20 ), at least to my naieve eye. . Some of these look like output from past debugging (e.g. Subsetting on {} keys. ).

It would be great if we could switch some of these from INFO to DEBUG, remove the messages, or clarify the output. It's definitely helpful to see some messages as the program runs.

Here is the terminal output from my last run:

    ____  _____ ____________  ___
   / __ \/ ___// ____/  _/  |/  /
  / / / /\__ \/ /    / // /|_/ / 
 / /_/ /___/ / /____/ // /  / /  
/_____//____/\____/___/_/  /_/   
                                 

[?] Select sector: CAMEL
 > CAMEL
   AMEL
   Coastal
   Agriculture
   Mortality
   Energy
   Labor

[?] Select [eta, rho]: 
 > X (1.5% target) [1.016010255, 9.149608e-05]
   X (2.0% target) [1.244459066, 0.00197263997]
   X (2.5% target) [1.421158116, 0.00461878399]
   o (3.0% target) [1.567899395, 0.00770271076]

[?] Select pulse years: 
 > X 2020
   X 2030
   X 2040
   X 2050
   X 2060
   X 2070
   X 2080

[?] Select valuation type: Global
 > Global
   Domestic

[[1.016010255, 9.149608e-05], [1.244459066, 0.00197263997], [1.421158116, 0.00461878399]]
['CAMEL_m1_c0.20']
[2020, 2030, 2040, 2050, 2060, 2070, 2080]
False
[1.016010255, 9.149608e-05] 2020 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.016010255, 9.149608e-05] 2030 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.016010255, 9.149608e-05] 2040 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.016010255, 9.149608e-05] 2050 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.016010255, 9.149608e-05] 2060 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.016010255, 9.149608e-05] 2070 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.016010255, 9.149608e-05] 2080 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.244459066, 0.00197263997] 2020 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.244459066, 0.00197263997] 2030 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.244459066, 0.00197263997] 2040 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.244459066, 0.00197263997] 2050 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.244459066, 0.00197263997] 2060 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.244459066, 0.00197263997] 2070 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.244459066, 0.00197263997] 2080 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.421158116, 0.00461878399] 2020 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.421158116, 0.00461878399] 2030 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.421158116, 0.00461878399] 2040 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.421158116, 0.00461878399] 2050 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.421158116, 0.00461878399] 2060 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.421158116, 0.00461878399] 2070 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
[1.421158116, 0.00461878399] 2080 CAMEL_m1_c0.20
Subsetting on {} keys.
Subsetting on {} keys.
Global consumption found up to 2300.
SCCs are available in /Users/bmalevich/Projects/dscim-epa/outputs/CAMEL_m1_c0.20/full_order_uncollapsed_sccs_risk_aversion.nc4
Full combined results are available in /Users/bmalevich/Projects/dscim-epa/outputs/CAMEL_m1_c0.20
@brews brews added bug Something isn't working documentation Improvements or additions to documentation labels Sep 15, 2022
@brews
Copy link
Member Author

brews commented Sep 15, 2022

Looks like some of these are coming from https://github.com/ClimateImpactLab/dscim-epa/blob/main/damage_fun_runs/command_line_scc.py

For example, lines like [1.016010255, 9.149608e-05] 2050 CAMEL_m1_c0.20 look like they're coming from this line.

@brews brews removed the documentation Improvements or additions to documentation label Sep 15, 2022
@brews brews closed this as completed in #14 Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant