Skip to content

Commit

Permalink
Merge pull request #138 from OMS-NetZero/patch-pooch
Browse files Browse the repository at this point in the history
workaround for Zenodo DOI bug
  • Loading branch information
chrisroadmap authored Oct 18, 2023
2 parents 03aac4f + f5a5b34 commit 5835d2f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
---------

v2.1.2
------

(`#138 <https://github.com/OMS-NetZero/FAIR/pull/138>`_) Zenodo DOI error when using `pooch` fixed

v2.1.1
------

Expand Down
9 changes: 6 additions & 3 deletions src/fair/fair.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,21 +828,24 @@ def fill_from_rcmip(self):
del species_to_rcmip[specie]

rcmip_emissions_file = pooch.retrieve(
url="doi:10.5281/zenodo.4589756/rcmip-emissions-annual-means-v5-1-0.csv",
url=(
"https://zenodo.org/records/4589756/files/"
"rcmip-emissions-annual-means-v5-1-0.csv"
),
known_hash="md5:4044106f55ca65b094670e7577eaf9b3",
)

rcmip_concentration_file = pooch.retrieve(
url=(
"doi:10.5281/zenodo.4589756/"
"https://zenodo.org/records/4589756/files/"
"rcmip-concentrations-annual-means-v5-1-0.csv"
),
known_hash="md5:0d82c3c3cdd4dd632b2bb9449a5c315f",
)

rcmip_forcing_file = pooch.retrieve(
url=(
"doi:10.5281/zenodo.4589756/"
"https://zenodo.org/records/4589756/files/"
"rcmip-radiative-forcing-annual-means-v5-1-0.csv"
),
known_hash="md5:87ef6cd4e12ae0b331f516ea7f82ccba",
Expand Down

0 comments on commit 5835d2f

Please sign in to comment.