Skip to content

Commit

Permalink
Merge branch 'main' into feature/add-transformation-for-glide
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Jan 7, 2025
2 parents 6b3c126 + 6b7d5a8 commit b221728
Show file tree
Hide file tree
Showing 5 changed files with 973 additions and 400 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches:
- main
pull_request:
merge_group:

concurrency:
# Cancel running job if another commit is pushed to the branch
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Sync
run: uv sync --all-extras
- name: Test
run: uv run pytest tests
4 changes: 2 additions & 2 deletions pystac_monty/hazard_profiles.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import importlib
import importlib.resources

import pandas as df

Expand All @@ -16,7 +16,7 @@ def __del__(self):

def get_profiles(self) -> df.DataFrame:
if self.impact_information_profile_data is None:
with importlib.resources.open_binary("pystac_monty", self.impact_information_profile_path) as f:
with importlib.resources.files("pystac_monty").joinpath(self.impact_information_profile_path).open("rb") as f:
self.impact_information_profile_data = df.read_csv(f)
return self.impact_information_profile_data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ interactions:
Content-Type:
- text/html; charset=utf-8
Date:
- Wed, 11 Dec 2024 10:28:37 GMT
- Tue, 07 Jan 2025 15:07:01 GMT
Location:
- https://raw.githubusercontent.com/IFRCGo/monty-stac-extension/refs/heads/main/examples/gdacs-events/gdacs-events.json
Referrer-Policy:
Expand All @@ -80,7 +80,7 @@ interactions:
X-Frame-Options:
- deny
X-GitHub-Request-Id:
- A318:16B45:3C8264:3D8BF0:67596955
- B21A:3D137C:3AC00B4:3C2871C:677D4315
X-XSS-Protection:
- '0'
status:
Expand Down Expand Up @@ -132,11 +132,11 @@ interactions:
Cross-Origin-Resource-Policy:
- cross-origin
Date:
- Wed, 11 Dec 2024 10:28:38 GMT
- Tue, 07 Jan 2025 15:07:01 GMT
ETag:
- W/"7d50f8fb7c2a7c6341b790577d036dccb1a4fd14958bf3c9b7f5569dde9f2730"
Expires:
- Wed, 11 Dec 2024 10:33:38 GMT
- Tue, 07 Jan 2025 15:12:01 GMT
Source-Age:
- '0'
Strict-Transport-Security:
Expand All @@ -152,15 +152,15 @@ interactions:
X-Content-Type-Options:
- nosniff
X-Fastly-Request-ID:
- e693483945b19969d7796875070df27848f469dd
- ec22ffb8939fbff1d2e50785c26e3f27b7ecee4a
X-Frame-Options:
- deny
X-GitHub-Request-Id:
- 24BE:1FBC8:5312C:56306:675966C1
- 7080:1B667E:96155D:9C196F:677D3E6F
X-Served-By:
- cache-par-lfpg1960067-PAR
- cache-par-lfpg1960079-PAR
X-Timer:
- S1733912918.876451,VS0,VE222
- S1736262422.569080,VS0,VE165
X-XSS-Protection:
- 1; mode=block
status:
Expand Down Expand Up @@ -230,7 +230,7 @@ interactions:
Content-Type:
- text/html; charset=utf-8
Date:
- Wed, 11 Dec 2024 10:28:37 GMT
- Tue, 07 Jan 2025 15:07:01 GMT
Location:
- https://raw.githubusercontent.com/IFRCGo/monty-stac-extension/refs/heads/main/examples/gdacs-events/gdacs-events.json
Referrer-Policy:
Expand All @@ -247,7 +247,7 @@ interactions:
X-Frame-Options:
- deny
X-GitHub-Request-Id:
- A324:206AD:3D070C:3E0EA1:67596956
- B222:3E0D16:3A47076:3BAF605:677D4315
X-XSS-Protection:
- '0'
status:
Expand Down Expand Up @@ -299,11 +299,11 @@ interactions:
Cross-Origin-Resource-Policy:
- cross-origin
Date:
- Wed, 11 Dec 2024 10:28:38 GMT
- Tue, 07 Jan 2025 15:07:01 GMT
ETag:
- W/"7d50f8fb7c2a7c6341b790577d036dccb1a4fd14958bf3c9b7f5569dde9f2730"
Expires:
- Wed, 11 Dec 2024 10:33:38 GMT
- Tue, 07 Jan 2025 15:12:01 GMT
Source-Age:
- '0'
Strict-Transport-Security:
Expand All @@ -319,15 +319,15 @@ interactions:
X-Content-Type-Options:
- nosniff
X-Fastly-Request-ID:
- 7ac1584c1eb918dbfe2b850106b6b7cd841678b4
- 61fa750d062e7803517fc78ec420ea1a05460554
X-Frame-Options:
- deny
X-GitHub-Request-Id:
- 24BE:1FBC8:5312C:56306:675966C1
- 7080:1B667E:96155D:9C196F:677D3E6F
X-Served-By:
- cache-par-lfpg1960037-PAR
- cache-par-lfpg1960030-PAR
X-Timer:
- S1733912918.266890,VS0,VE3
- S1736262422.905105,VS0,VE6
X-XSS-Protection:
- 1; mode=block
status:
Expand Down Expand Up @@ -397,7 +397,7 @@ interactions:
Content-Type:
- text/html; charset=utf-8
Date:
- Wed, 11 Dec 2024 10:28:38 GMT
- Tue, 07 Jan 2025 15:07:02 GMT
Location:
- https://raw.githubusercontent.com/IFRCGo/monty-stac-extension/refs/heads/main/examples/gdacs-hazards/gdacs-hazards.json
Referrer-Policy:
Expand All @@ -414,7 +414,7 @@ interactions:
X-Frame-Options:
- deny
X-GitHub-Request-Id:
- A330:13F08:3B84AC:3C8C8C:67596956
- B22E:3C9D:3A9676A:3BFEF25:677D4315
X-XSS-Protection:
- '0'
status:
Expand Down Expand Up @@ -465,11 +465,11 @@ interactions:
Cross-Origin-Resource-Policy:
- cross-origin
Date:
- Wed, 11 Dec 2024 10:28:39 GMT
- Tue, 07 Jan 2025 15:07:02 GMT
ETag:
- W/"0e1341982462438e4c8a456b2edbf7c112b9dd9d2b5ea3bca5598ad315ea569d"
Expires:
- Wed, 11 Dec 2024 10:33:39 GMT
- Tue, 07 Jan 2025 15:12:02 GMT
Source-Age:
- '0'
Strict-Transport-Security:
Expand All @@ -479,21 +479,21 @@ interactions:
Via:
- 1.1 varnish
X-Cache:
- HIT
- MISS
X-Cache-Hits:
- '0'
X-Content-Type-Options:
- nosniff
X-Fastly-Request-ID:
- 5b315e7af41bdbbd203dfb574c4815c15051e527
- c9e40e77ca307f3d734c302ef1c0b51585c6b77f
X-Frame-Options:
- deny
X-GitHub-Request-Id:
- 5AFC:3DFA9C:5643D:59630:675966C1
- 4810:3DA8D1:96783D:9C9CE5:677D4312
X-Served-By:
- cache-par-lfpg1960057-PAR
- cache-par-lfpg1960087-PAR
X-Timer:
- S1733912919.951377,VS0,VE175
- S1736262423.588754,VS0,VE173
X-XSS-Protection:
- 1; mode=block
status:
Expand Down Expand Up @@ -554,13 +554,13 @@ interactions:
Cross-Origin-Resource-Policy:
- cross-origin
Date:
- Wed, 11 Dec 2024 10:28:39 GMT
- Tue, 07 Jan 2025 15:07:02 GMT
ETag:
- W/"5f6e1f3230195359862218fdea20141106751a1f1764da100ee01a376ddd4589"
Expires:
- Wed, 11 Dec 2024 10:33:39 GMT
- Tue, 07 Jan 2025 15:12:02 GMT
Source-Age:
- '12'
- '202'
Strict-Transport-Security:
- max-age=31536000
Vary:
Expand All @@ -570,19 +570,19 @@ interactions:
X-Cache:
- HIT
X-Cache-Hits:
- '1'
- '0'
X-Content-Type-Options:
- nosniff
X-Fastly-Request-ID:
- fcbd2eb3776ebaed290a543f388a9c53b15acc6f
- e8d1fc9beb8c5a37221532b0f3dc4ac524e5d64f
X-Frame-Options:
- deny
X-GitHub-Request-Id:
- 3C00:03EC:6F11F:7364E:6759694A
- 621E:3D6372:91347C:971B5F:677D3A45
X-Served-By:
- cache-par-lfpg1960034-PAR
- cache-par-lfpg1960042-PAR
X-Timer:
- S1733912919.250286,VS0,VE1
- S1736262423.887037,VS0,VE1
X-XSS-Protection:
- 1; mode=block
status:
Expand Down Expand Up @@ -643,13 +643,13 @@ interactions:
Cross-Origin-Resource-Policy:
- cross-origin
Date:
- Wed, 11 Dec 2024 10:28:39 GMT
- Tue, 07 Jan 2025 15:07:03 GMT
ETag:
- W/"5f6e1f3230195359862218fdea20141106751a1f1764da100ee01a376ddd4589"
Expires:
- Wed, 11 Dec 2024 10:33:39 GMT
- Tue, 07 Jan 2025 15:12:03 GMT
Source-Age:
- '12'
- '202'
Strict-Transport-Security:
- max-age=31536000
Vary:
Expand All @@ -663,15 +663,15 @@ interactions:
X-Content-Type-Options:
- nosniff
X-Fastly-Request-ID:
- 6071a24a27af8e8caad07fde31540f435716e711
- 560e45e94b76da0b968efc9be43c40b90e880407
X-Frame-Options:
- deny
X-GitHub-Request-Id:
- 3C00:03EC:6F11F:7364E:6759694A
- 621E:3D6372:91347C:971B5F:677D3A45
X-Served-By:
- cache-par-lfpg1960095-PAR
- cache-par-lfpg1960037-PAR
X-Timer:
- S1733912919.389390,VS0,VE1
- S1736262423.032407,VS0,VE1
X-XSS-Protection:
- 1; mode=block
status:
Expand Down
Loading

0 comments on commit b221728

Please sign in to comment.