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

Add documentation and comments for pulse size #47

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Add documentation and comments for pulse size #47

wants to merge 10 commits into from

Conversation

lrennels
Copy link
Collaborator

@lrennels lrennels commented Jun 4, 2021

#32

@codecov
Copy link

codecov bot commented Jun 4, 2021

Codecov Report

Merging #47 (741918b) into master (0fbe1e4) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #47   +/-   ##
=======================================
  Coverage   90.37%   90.37%           
=======================================
  Files          12       12           
  Lines         187      187           
=======================================
  Hits          169      169           
  Misses         18       18           
Flag Coverage Δ
unittests 90.37% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/marginaldamage.jl 68.62% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2235246...741918b. Read the comment docs.

Copy link
Member

@davidanthoff davidanthoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the docs as written right now are incorect: the unit of pulse_size is GtC, not GtCO2, unless I'm missing something :)

README.md Outdated

### Pulse Size Details

By default, MimiDICE2010 will calculate the SCC using a marginal emissions pulse of 10 GtCO2 spread over ten years, or 1 GtCO2 per year for ten years. The SCC will always be returned in $ per ton CO2 since is normalized by this pulse size. This choice of pulse size and duration is a decision made based on experiments with stability of results and moving from continuous to discretized equations, and can be found described further in the literature around DICE.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that is incorrect. The unit of pulse_size is GtC, not GtCO2, and the default parameter value is 1e10, so the default pulse size is 10 GtC. It might make sense, though, to change the unit of pulse_size to GtCO2, just to have everything uniform?

README.md Outdated
compute_scc(m::Model=get_model(); year::Union{Int, Nothing}=nothing, last_year::Int=model_years[end],
prtp::Float64=0.015, eta::Float64=1.5, pulse_size=1e10)
```
where `pulse_size` controls the size of the marginal emission pulse in GtCO2.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, at the moment the unit is GtC, as far as I can tell.

@lrennels
Copy link
Collaborator Author

@davidanthoff fixed!

@lrennels lrennels requested a review from davidanthoff July 12, 2021 17:35
Copy link
Member

@davidanthoff davidanthoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one more change suggestion on the language.

README.md Outdated Show resolved Hide resolved
Co-authored-by: David Anthoff <[email protected]>
@lrennels
Copy link
Collaborator Author

lrennels commented Feb 6, 2023

@davidanthoff ready for merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants