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

Physrisk document drought #286

Open
wants to merge 341 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
341 commits
Select commit Hold shift + click to select a range
b09483c
Merge pull request #70 from negillett/add-dataobj-init
negillett Apr 1, 2022
a5b0d30
Release v0.1.2
negillett Apr 1, 2022
fbd9056
Fix ValueError in requests.get()
negillett Apr 1, 2022
2f05a88
Merge pull request #71 from negillett/fix-get-err
negillett Apr 1, 2022
71dd289
Release v0.1.3
negillett Apr 1, 2022
fc47589
Add support for vulnerability cuves
joemoorhouse Apr 2, 2022
dde54ee
Merge branch 'main' of https://github.com/joemoorhouse/physrisk into …
joemoorhouse Apr 2, 2022
f23eea5
Tidying post merge
joemoorhouse Apr 3, 2022
c34861a
Missed tidy changes
joemoorhouse Apr 3, 2022
577a671
Expose zarr store to requests API
joemoorhouse Apr 19, 2022
e6562d0
Merge pull request #73 from joemoorhouse/main
joemoorhouse Apr 19, 2022
50373c2
Add logging to zarr_reader for debugging in OpenShift
negillett Apr 20, 2022
abb528e
Merge pull request #74 from negillett/debug
joemoorhouse Apr 20, 2022
c4c7c50
Release v0.2.0
negillett Apr 20, 2022
792595d
Remove debug logging for zarr_reader
negillett Apr 20, 2022
2cbd10b
Add proxying to real estate model. Update on-boarding scripts.
joemoorhouse Apr 24, 2022
f46beb8
Merge branch 'os-climate:main' into main
joemoorhouse Apr 24, 2022
a434ec3
Merge pull request #76 from joemoorhouse/main
joemoorhouse Apr 24, 2022
30ced87
Update version
joemoorhouse Apr 24, 2022
e101985
Update version
joemoorhouse Apr 25, 2022
f0c55a7
Add static json for vulnerability to package
joemoorhouse Apr 25, 2022
d4993e2
Update version
joemoorhouse Apr 25, 2022
f19a219
Merge pull request #75 from negillett/rm-debug
negillett Apr 30, 2022
0dbb66f
Add path, display_name, description, filename to hazard inventory
negillett May 2, 2022
13084c6
Merge pull request #78 from negillett/add-to-inv
joemoorhouse May 2, 2022
f874b9a
Release 0.3.0
negillett May 2, 2022
ab6e3f7
Revert RiverineInundation inventory IDs
May 4, 2022
1b277a4
Merge pull request #80 from negillett/revert-ids
negillett May 4, 2022
d099808
Release 0.3.1
May 4, 2022
cb2d9db
Expose coastal inundation and fix inventory
joemoorhouse May 7, 2022
ce87971
Separate riverine and coastal real estate inundation models
joemoorhouse May 8, 2022
6f4f189
Merge pull request #81 from joemoorhouse/main
joemoorhouse May 9, 2022
32c41a0
Add support for (bi)linear interpolation in Zarr
joemoorhouse May 16, 2022
0981705
Expose linear interpolation
joemoorhouse May 23, 2022
4af9d75
Merge branch 'os-climate:main' into main
joemoorhouse May 23, 2022
f54e8d8
Tidy structure and update CONTRIBUTING.md
joemoorhouse May 25, 2022
0b1edba
Merge pull request #82 from joemoorhouse/main
joemoorhouse May 25, 2022
2f1521c
Merge branch 'main' of https://github.com/joemoorhouse/physrisk into …
joemoorhouse May 25, 2022
1331189
Merge pull request #83 from joemoorhouse/main
joemoorhouse May 25, 2022
e27cdba
Update version
joemoorhouse May 26, 2022
7eabf2c
Incorporate references for inundation and heat
joemoorhouse Jun 16, 2022
a8d9b5e
Merge pull request #84 from joemoorhouse/main
joemoorhouse Jun 16, 2022
b5d611a
Fix bug in outputting linearly interpolated hazard data
joemoorhouse Jun 17, 2022
b125f22
Merge branch 'os-climate:main' into main
joemoorhouse Jun 17, 2022
f0e099d
Merge pull request #85 from joemoorhouse/main
joemoorhouse Jun 17, 2022
625552a
Update methodology doc intro
joemoorhouse Jul 4, 2022
4580277
Update hazard onboarding scripts
joemoorhouse Jul 4, 2022
1a15479
Changes to include chronic hazards explicitly.
joemoorhouse Jul 6, 2022
0d7994b
Merge branch 'os-climate:main' into osc-chronic
joemoorhouse Jul 6, 2022
9e7ebb2
Chronic hazard tidying
joemoorhouse Jul 7, 2022
7f69dd5
Reformatting
joemoorhouse Jul 7, 2022
a0592ce
Merge pull request #87 from joemoorhouse/osc-chronic
joemoorhouse Jul 7, 2022
c638950
Renaming changes after walk-through
joemoorhouse Jul 8, 2022
2b8c25d
Merge pull request #88 from joemoorhouse/osc-chronic
joemoorhouse Jul 8, 2022
d302f35
Refactor hazard on-boarding
joemoorhouse Jul 28, 2022
8755ad1
Merge pull request #93 from joemoorhouse/osc-hazard
joemoorhouse Jul 28, 2022
dd95d49
Changes to zarr_reader file to incorporate max and min interpolations…
deepakbaskaran Jul 29, 2022
1f4217c
Adding asset impact request/response (#95)
joemoorhouse Sep 6, 2022
f90d063
Changes to interpolation for innundation risk calculations. Interpola…
deepakbaskaran Sep 7, 2022
214fa61
Consolidate hazard information into inventory. (#99)
joemoorhouse Sep 13, 2022
a6f4d28
Update version
joemoorhouse Sep 13, 2022
dd0b850
Changes to Chronic Heat test example: merged. (#100)
joemoorhouse Sep 15, 2022
ffb2bfa
Updated chronic heat model to include parameters from the root paper.…
MLevinMazars Sep 21, 2022
e0f2854
Adjustment made to the normalisation method. Removal of _default_prob…
MLevinMazars Sep 23, 2022
7a92656
Changes to ensure both test class and actual class align. Adding delt…
MLevinMazars Sep 25, 2022
2c70e63
Making changes as agreed with Deepak. Not that there has also been a …
MLevinMazars Sep 26, 2022
eee6a53
Update tox.ini
MLevinMazars Sep 27, 2022
b8ca171
Updated Pull Request Post Meeting (#103)
MLevinMazars Sep 27, 2022
67f2d3d
Impact request interface changes (#104)
joemoorhouse Sep 27, 2022
ddb466d
Update version
joemoorhouse Sep 27, 2022
d3d8729
Merge branch 'os-climate:main' into main
MLevinMazars Oct 3, 2022
452ea9a
Heat model documentation update (#105)
mariembouchaala Oct 5, 2022
1c1eb1b
On-board mean work loss hazard (#106)
joemoorhouse Oct 17, 2022
88b709a
Addding the WBGT example model script. Changes also made to the the c…
MLevinMazars Oct 18, 2022
2e02c22
WBGT test model added. Additional changes made to the calculation and…
MLevinMazars Oct 18, 2022
74b829b
Updated files to resolve merge conflict with main branch. Removed gen…
MLevinMazars Oct 18, 2022
dd5119d
Merge pull request #108 from MLevinMazars/main
deepakbaskaran Oct 28, 2022
dbd58f6
Update inventory and onboarding scripts (#109)
joemoorhouse Oct 30, 2022
f19f3fd
Update version
joemoorhouse Oct 30, 2022
13c40c8
Add in example portfolios; optimisations and tidy (#111)
joemoorhouse Nov 5, 2022
d8d8cca
Update version
joemoorhouse Nov 5, 2022
3a39a28
Tidy methodology doc introduction (#116)
joemoorhouse Dec 21, 2022
c9df12a
On-the-fly map generation for small data sets (#119)
joemoorhouse Feb 3, 2023
7234bcc
Update version
joemoorhouse Feb 3, 2023
b3fd402
Changes for Jupiter data integration. (#120)
joemoorhouse Mar 11, 2023
df538fb
Update version
joemoorhouse Mar 11, 2023
2b4d6d9
Add exposure measure and dependency injection (#122)
joemoorhouse Mar 19, 2023
08af8d5
Update version
joemoorhouse Mar 19, 2023
2461373
Add outline of event-based wind calculation. (#124)
joemoorhouse Apr 12, 2023
e54be0c
Add exposure service.
joemoorhouse May 15, 2023
0f95346
Merge pull request #127 from joemoorhouse/exposure-final
joemoorhouse May 15, 2023
b0b1225
Update version
joemoorhouse May 15, 2023
56c9621
adding protection to prevent credential exposure
HeatherAck May 17, 2023
1826835
Exposure service make no data explicit, add values.
joemoorhouse May 24, 2023
d10aae7
Merge pull request #128 from joemoorhouse/exposure-nans
joemoorhouse May 25, 2023
5e0d7be
Update version
joemoorhouse May 25, 2023
1b371bd
Add WBGT Chronic Heat Model (#129)
joemoorhouse May 29, 2023
e8531fb
Add event-based approach to methodology doc.
joemoorhouse May 30, 2023
dbbdf3d
Merge pull request #130 from joemoorhouse/methoddoc
joemoorhouse May 30, 2023
c7a21ea
Updates to methodology doc: extend references; enhance event-based se…
joemoorhouse Jun 4, 2023
6a095d7
Update methodology doc financial model section.
joemoorhouse Jun 13, 2023
45658d4
Merge pull request #132 from joemoorhouse/methdoc2
joemoorhouse Jun 13, 2023
dfaa93f
Changes to inventory structure; facilitate interchangeability of haza…
joemoorhouse Aug 6, 2023
b0ac8a1
Minor tidy (#141)
joemoorhouse Aug 7, 2023
733ec15
Refactoring to support risk models; resync inventory (#142)
joemoorhouse Aug 24, 2023
22e196f
Update version
joemoorhouse Aug 24, 2023
d578526
Add missing files (#143)
joemoorhouse Aug 24, 2023
ba8c6a1
Update version
joemoorhouse Aug 24, 2023
1ac1f45
Update manifest
joemoorhouse Aug 24, 2023
050b948
Merge pull request #144 from joemoorhouse/hotfix2
joemoorhouse Aug 24, 2023
104113d
Update version
joemoorhouse Aug 24, 2023
516d360
Add detail about use of heuristic vulnerability distributions
joemoorhouse Sep 6, 2023
e849fb6
Merge pull request #145 from joemoorhouse/doc-vuln
joemoorhouse Sep 6, 2023
cf0d016
Onboard Iris wind model (#146)
joemoorhouse Sep 17, 2023
336346e
Update version
joemoorhouse Sep 17, 2023
9e18fd7
Add test for the commercial real estate model (#149)
EglantineGiraud Sep 30, 2023
e472bc2
Add WRI maps (size 512); update exposure for inventory update (#150)
joemoorhouse Sep 30, 2023
74aa407
Update version
joemoorhouse Sep 30, 2023
5c9bbd2
modified files to make unittest run
Oct 10, 2023
6a8c9f8
first sphinx implementation for code docs
Oct 10, 2023
cd63164
changed default titles
Oct 10, 2023
145bb83
simplified bug fix, for easier merging with main branch
Oct 12, 2023
c339a8a
added initial page with 4 cards and pics from the website
Oct 12, 2023
3cc9e5b
Add generic wind vulnerability model; overhaul score-based risk measu…
joemoorhouse Oct 16, 2023
5b2b7d3
added readthedocs initial config file
Oct 17, 2023
3b9372d
import packages for readthedocs
Oct 17, 2023
7a52ecb
import sphinx_toolbox
Oct 17, 2023
38a09f3
added requirements-docs.txt
Oct 17, 2023
3ddecc4
added packages to requirement-docs
Oct 17, 2023
4ac76df
Points-based hazard model test (#154)
joemoorhouse Oct 20, 2023
4943450
added vanilla version of the documentation. (#153)
danicosteroarfima Oct 21, 2023
e41df41
Readme update (#155)
joemoorhouse Oct 21, 2023
c864e41
Refine risk model tests (#157)
joemoorhouse Oct 29, 2023
ccaae6e
added requirements-docs
danicosteroarfima Nov 13, 2023
a860163
Risk model tests and API changes (#162)
joemoorhouse Nov 16, 2023
51d6dba
Cooling model and chronic hazard enhancements (#163)
joemoorhouse Nov 19, 2023
c3072a3
Create dependabot.yml
ModeSevenIndustrialSolutions Nov 21, 2023
836e222
Merge pull request #164 from os-climate/enable-dependabot
ModeSevenIndustrialSolutions Nov 21, 2023
dd4fed7
Onboarding World Resources Institute's thermal power plant physical c…
EglantineGiraud Nov 29, 2023
feab089
Fix: Line duplication in GitHub dependabot setup
ModeSevenIndustrialSolutions Nov 29, 2023
e6e4e30
Merge pull request #186 from os-climate/fix-dependabot-config
ModeSevenIndustrialSolutions Nov 29, 2023
7536890
Improve failure behaviour with missing data
joemoorhouse Nov 29, 2023
66828e9
Merge pull request #187 from joemoorhouse/bug-fix
joemoorhouse Nov 29, 2023
5ccce07
[dependabot] Chore: Bump s3fs from 2022.1.0 to 2023.12.0
dependabot[bot] Dec 4, 2023
d232943
Update dependabot.yml
ModeSevenIndustrialSolutions Dec 4, 2023
efc5a16
Merge pull request #1 from os-climate/dependabot/pip/s3fs-2023.12.0
ModeSevenIndustrialSolutions Dec 5, 2023
827ee1a
[dependabot] Chore: Bump pydata-sphinx-theme from 0.14.1 to 0.14.4
dependabot[bot] Dec 11, 2023
a624ffc
Merge pull request #2 from os-climate/dependabot/pip/pydata-sphinx-th…
ModeSevenIndustrialSolutions Dec 11, 2023
d947e6e
Chore: Source .github from upstream repository
ModeSevenIndustrialSolutions Dec 11, 2023
c64b7a9
Merge pull request #198 from os-climate/repo-cleanup
ModeSevenIndustrialSolutions Dec 11, 2023
7973541
Revert "Repo cleanup"
ModeSevenIndustrialSolutions Dec 11, 2023
46d4bc7
Merge pull request #199 from os-climate/revert-198-repo-cleanup
ModeSevenIndustrialSolutions Dec 11, 2023
8585bb6
Water temperature on-boarding
EglantineGiraud Dec 11, 2023
a84e053
Water temperature on-boarding (#203)
EglantineGiraud Dec 13, 2023
1ba250e
Add chronic heat to the 'toy' risk model and improve performance. (#205)
joemoorhouse Dec 17, 2023
7767439
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Dec 25, 2023
5c93f5d
Refactor ImpactKey; fully support multiple scenarios/years. (#207)
joemoorhouse Jan 2, 2024
12656b7
Update version
joemoorhouse Jan 2, 2024
b859bf3
Merge pull request #208 from joemoorhouse/version-0.22.0
joemoorhouse Jan 2, 2024
8891fcb
Merge pull request #9 from os-climate/main
EglantineGiraud Jan 5, 2024
48b0e35
Expose interpolation option to service; prep work to add commercial h…
joemoorhouse Jan 11, 2024
acc75ce
Merge pull request #210 from joemoorhouse/hazard-model-inject
joemoorhouse Jan 11, 2024
abab3cb
Apply 'PixelAsArea' mode by default
EglantineGiraud Jan 15, 2024
31a420f
Merge branch 'os-climate:main' into physrisk_pixel_is_area
EglantineGiraud Jan 15, 2024
cb9f5ac
Apply 'PixelAsArea' mode by default
EglantineGiraud Jan 17, 2024
7c830c0
Merge pull request #213 from EglantineGiraud/physrisk_pixel_is_area
joemoorhouse Jan 17, 2024
d6c2999
Merge pull request #197 from os-climate/pre-commit-ci-update-config
joemoorhouse Jan 28, 2024
10a1ec1
Correct ordering potential instability (#216)
joemoorhouse Jan 28, 2024
3fde69e
Add water temperature and wet-bulb globe temperature in the JSON inve…
EglantineGiraud Feb 2, 2024
395c021
Thermal Power Generation Asset: Onboard WaterTemperature (#218)
EglantineGiraud Feb 2, 2024
119a2ac
Fix CI failures (#219)
EglantineGiraud Feb 4, 2024
d727639
Remove asyncio loop; add support for non-EPSG-4326 co-ordinate refere…
joemoorhouse Feb 5, 2024
420b143
Update VERSION (#221)
joemoorhouse Feb 5, 2024
4f27c25
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Feb 19, 2024
b63a1e7
Assessment of water-related risks for thermal power generating assets…
EglantineGiraud Feb 22, 2024
90a22fc
Add new hazards, changes related to threshold-based indicators and do…
joemoorhouse Feb 28, 2024
b0e72ff
Fix tests (#225)
joemoorhouse Feb 28, 2024
42d7b3d
Migrate to pyproject.toml (#226)
joemoorhouse Feb 28, 2024
eff848a
Tidy and bump version (#227)
joemoorhouse Feb 28, 2024
8562201
Pdm build (#228)
joemoorhouse Feb 29, 2024
e24fa32
Update tests and release for PDM (#229)
joemoorhouse Mar 1, 2024
3bb68dc
Version 0.25.0 (#230)
joemoorhouse Mar 1, 2024
943421f
Fix release permissions (#231)
joemoorhouse Mar 1, 2024
b17f945
Move publish to physrisk from physrisk-lib (#232)
joemoorhouse Mar 1, 2024
8edc5b3
Revert change to physrisk package from physrisk-lib (#233)
joemoorhouse Mar 1, 2024
e299c89
Remove unsupported PyPI files (#234)
joemoorhouse Mar 2, 2024
7cccf31
Update release.yml (#235)
joemoorhouse Mar 2, 2024
465f811
Fix CI failures (#236)
EglantineGiraud Mar 4, 2024
65c47d2
Feat: Add website documentation
dcosteroarfima Mar 11, 2024
a454e65
Merge branch 'main' into documentation-updates
dcosteroarfima Mar 11, 2024
535f290
Chore: Address final linting errors in Daniel's PR #238
ModeSevenIndustrialSolutions Mar 11, 2024
1ae6741
Merge pull request #238 from dcosteroarfima/documentation-updates
ModeSevenIndustrialSolutions Mar 11, 2024
823bd1b
Merge pull request #222 from os-climate/pre-commit-ci-update-config
ModeSevenIndustrialSolutions Mar 11, 2024
312318d
Chore: Prepare repository for RTD migration
ModeSevenIndustrialSolutions Mar 12, 2024
40f952f
Merge pull request #239 from modeseven-os-climate/rtd-config-changes
ModeSevenIndustrialSolutions Mar 12, 2024
7d25775
Bump pillow from 9.4.0 to 10.2.0 in /docs
dependabot[bot] Mar 12, 2024
099a4c8
Bump scipy from 1.7.3 to 1.11.1 in /docs
dependabot[bot] Mar 12, 2024
9b5fdde
Chore: RTD needs minimum conf.py configuration
ModeSevenIndustrialSolutions Mar 12, 2024
909bfaf
Merge pull request #243 from modeseven-os-climate/rtd-config-changes
ModeSevenIndustrialSolutions Mar 12, 2024
0ccc4c2
Chore: Further RTD dependency and metadata updates
ModeSevenIndustrialSolutions Mar 12, 2024
e2a84c3
Merge pull request #244 from modeseven-os-climate/main
ModeSevenIndustrialSolutions Mar 12, 2024
cac9c7e
Chore: Migrate RTD back to original schemea/configuration
ModeSevenIndustrialSolutions Mar 13, 2024
130fcce
Resolve merge conflicts caused by RTD changes
ModeSevenIndustrialSolutions Mar 13, 2024
56d460c
Resolve merge conflicts caused by RTD changes
ModeSevenIndustrialSolutions Mar 13, 2024
fec7f9c
Chore: Migrate RTD back to original schemea/configuration
ModeSevenIndustrialSolutions Mar 13, 2024
def7877
Merge pull request #3 from modeseven-os-climate/rtd-config-changes
ModeSevenIndustrialSolutions Mar 13, 2024
6d25738
Merge pull request #245 from modeseven-os-climate/main
ModeSevenIndustrialSolutions Mar 13, 2024
823deb3
Merge pull request #242 from os-climate/dependabot/pip/docs/pillow-10…
ModeSevenIndustrialSolutions Mar 13, 2024
afc8000
Merge pull request #241 from os-climate/dependabot/pip/docs/scipy-1.11.1
ModeSevenIndustrialSolutions Mar 13, 2024
e092236
Add an entry to the litterature review spreadsheet (#246)
EglantineGiraud Mar 13, 2024
bafeae2
Add an entry to the litterature review spreadsheet (#247)
EglantineGiraud Mar 13, 2024
b3abeb0
Fix bibliography (#248)
EglantineGiraud Mar 13, 2024
88b7362
Add pluvial inundation (#249)
joemoorhouse Mar 15, 2024
34b6322
Update version
joemoorhouse Mar 15, 2024
af2bc68
Merge pull request #250 from joemoorhouse/v0.26.0
joemoorhouse Mar 15, 2024
2046f52
Add plug-and-playness of vulnerability models to dependency injection.
joemoorhouse Mar 18, 2024
707f156
Merge pull request #252 from joemoorhouse/expose-vuln
joemoorhouse Mar 18, 2024
b7b6055
Update version
joemoorhouse Mar 18, 2024
a680421
Merge pull request #253 from joemoorhouse/v.0.27.0
joemoorhouse Mar 18, 2024
e00603e
Thermal power generation documentation (#254)
EglantineGiraud Mar 18, 2024
e009b1b
Fix typo bugs
joemoorhouse Mar 18, 2024
39e975f
Merge pull request #256 from joemoorhouse/fix-pluv
joemoorhouse Mar 18, 2024
3c487a1
Update version
joemoorhouse Mar 18, 2024
fba577f
Merge pull request #257 from joemoorhouse/v0.28.0
joemoorhouse Mar 18, 2024
a65d9e0
Thermal power generation documentation (#258)
EglantineGiraud Mar 19, 2024
59c49a2
Code cleanup (#259)
EglantineGiraud Mar 19, 2024
d055c1d
Inventory update (#260)
EglantineGiraud Mar 19, 2024
0feb814
Add first two example notebooks (#261)
joemoorhouse Mar 25, 2024
aadb1ce
Update stddev_impact (#264)
EglantineGiraud Apr 4, 2024
814aa60
Fix impact key (#265)
EglantineGiraud Apr 5, 2024
7294f0b
Improve handling of NaNs (#267)
joemoorhouse Apr 8, 2024
759384a
Update version (#268)
joemoorhouse Apr 8, 2024
346ef55
Add tudelft riverine flood to inventory (#269)
joemoorhouse Apr 9, 2024
3188994
Add disaggregation methodology to doc; update flood hazard section (#…
joemoorhouse Apr 21, 2024
e9aa43c
Physrisk extra assets (#274)
EglantineGiraud Apr 28, 2024
c418ac1
create_assets (#275)
EglantineGiraud Apr 28, 2024
ed11001
Add property to control calls to external providers. (#276)
joemoorhouse Apr 29, 2024
fadbc0a
Update version (#277)
joemoorhouse Apr 29, 2024
79e1709
Updated Drought section
faridradmehr May 3, 2024
4f472cd
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 3, 2024
63021d5
Add max requests to all requests (#279)
joemoorhouse May 7, 2024
47fcee0
Physrisk assets (#280)
EglantineGiraud May 13, 2024
4c40054
Updated Drought section (#278)
faridradmehr May 13, 2024
cf2b3db
Bug fix of the vulnerability models for thermal power generation (#281)
EglantineGiraud May 17, 2024
f1adaf1
Bug fix in the vulnerability models for thermal power generation (#282)
EglantineGiraud May 18, 2024
123548f
Fix TOX (#283)
EglantineGiraud May 18, 2024
bb7cd9c
Avoid overriding an asset impact result if empty (#284)
EglantineGiraud May 19, 2024
5c00a5d
Update bibliography
faridradmehr May 21, 2024
be441b3
Merge branch 'os-climate:main' into physrisk_document_drought
faridradmehr May 21, 2024
a7ec040
Merge branch 'physrisk_document_drought' of https://github.com/faridr…
faridradmehr May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .aicoe-ci.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @durandom @tumido
* @joemoorhouse
17 changes: 17 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
# prettier-ignore
- package-ecosystem: "pip" # See documentation for possible values
# prettier-ignore
directory: "/" # Location of package manifests
commit-message:
prefix: "[dependabot] Chore:"
open-pull-requests-limit: 1
schedule:
interval: "weekly"
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
python-version: "3.8"

jobs:
ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: "Setup Python"
uses: actions/[email protected]
with:
python-version: ${{ env.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox

- name: Run auto-tests
run: tox
63 changes: 63 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
name: "🐍📦 Production build and release"

# GitHub/PyPI trusted publisher documentation:
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

# yamllint disable-line rule:truthy
on:
workflow_dispatch:
push:
# Only invoked on release tag pushes
tags:
- v*.*.*

env:
python-version: "3.8"

jobs:
publish:
name: "🐍📦 Build and publish"
runs-on: ubuntu-latest
environment:
name: pypi
permissions:
# IMPORTANT: mandatory for trusted publishing
id-token: write
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Setup PDM for build commands"
uses: pdm-project/setup-pdm@v3
with:
version: 2.10.0

- name: "Setup Python"
uses: actions/[email protected]
with:
python-version: ${{ env.python-version }}

- name: "Build with PDM backend"
run: |
pdm build

- name: "Sign packages with Sigstore"
uses: sigstore/[email protected]
with:
inputs: >-
./dist/*.tar.gz
./dist/*.whl

- name: "Remove files unsupported by PyPi"
run: |
if [ -f dist/buildvars.txt ]; then
rm dist/buildvars.txt
fi
rm dist/*.sigstore | true

- name: "Publish package to PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
password: ${{ secrets.PYPI_API_TOKEN }}
69 changes: 69 additions & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
name: "🐍📦 Test build and publish to Test PyPI"

# GitHub/PyPI trusted publisher documentation:
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

# yamllint disable-line rule:truthy
on: push

env:
python-version: "3.8"

jobs:
publish:
name: "🐍📦 Test build and publish"
runs-on: ubuntu-latest
environment:
name: testpypi
permissions:
# IMPORTANT: mandatory for trusted publishing
id-token: write
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Setup PDM for build commands"
uses: pdm-project/setup-pdm@v3
with:
version: 2.10.0

- name: "Setup Python"
uses: actions/[email protected]
with:
python-version: ${{ env.python-version }}

- name: "Update version and output Run ID"
run: |
value=`scripts/version.sh`
scripts/dev-versioning.sh "$value-dev${{ github.run_id }}"
echo "$value-dev${{ github.run_id }}"
echo ${{ github.run_id }}

- name: "Output Run Number"
run: echo ${{ github.run_number }}

- name: "Build with PDM backend"
run: |
pdm build

- name: "Sign packages with Sigstore"
uses: sigstore/[email protected]
with:
inputs: >-
./dist/*.tar.gz
./dist/*.whl

- name: "Remove files unsupported by PyPi"
run: |
if [ -f dist/buildvars.txt ]; then
rm dist/buildvars.txt
fi
rm dist/*.sigstore | true

- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Credentials / Secrets
credentials.env

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down Expand Up @@ -57,7 +60,7 @@ docs/_build/
target/

# DotEnv configuration
.env
*.env

# Database
*.db
Expand Down Expand Up @@ -87,3 +90,9 @@ target/

# Mypy cache
.mypy_cache/

# Virtual environment
.venv/*
src/test/data/coords.json
credentials.env
.pdm-python
56 changes: 16 additions & 40 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
---
repos:
- repo: git://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.10
hooks:
- id: remove-tabs

- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: check-merge-conflict
Expand All @@ -16,51 +11,32 @@ repos:
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-symlinks
- id: detect-private-key
- id: check-ast
- id: debug-statements

- repo: git://github.com/pycqa/pydocstyle.git
rev: 6.1.1
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: pydocstyle

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.902
hooks:
- id: mypy
exclude: '^(docs|tasks|tests)|setup\.py'
args: [--ignore-missing-imports]
- id: remove-tabs

- repo: https://github.com/psf/black
rev: 21.6b0
rev: '24.2.0'
hooks:
- id: black

- repo: https://github.com/tomcatling/black-nb
rev: '0.5.0'
hooks:
- id: black-nb

# Enable this in repositories with python packages.
# - repo: https://github.com/mgedmin/check-manifest
# rev: '0.39'
# hooks:
# - id: check-manifest
- id: black-jupyter

- repo: https://github.com/s-weigand/flake8-nb
rev: v0.3.0
rev: v0.5.3
hooks:
- id: flake8-nb
additional_dependencies: ['pep8-naming']
additional_dependencies:
- pep8-naming
# Ignore all format-related checks as Black takes care of those.
args: ['--ignore', 'E2,W5', '--select', 'E,W,F,N', '--max-line-length=120']
args:
- --ignore=E2, W5, F401, E401, E704
- --select=E, W, F, N
- --max-line-length=120
20 changes: 0 additions & 20 deletions .prow.yaml

This file was deleted.

28 changes: 28 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.9"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
formats:
- pdf
- epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements-docs.txt
26 changes: 0 additions & 26 deletions .thoth.yaml

This file was deleted.

Loading
Loading