-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: FWI direct download from EFFIS and GeoJSON conversion (#77)
* add: function to limit the number of files we have as an output for the function list_files * add: function to query data from url and store it to s3 * add: function to write json to s3 bucket * add: helper class to manipulate FWI file we download from EFFIS * add: notebook to show how the downloading, formatting and uploading should be done * chore: update README with credit for EFFIS * add: main * add localstack for dev purposes + comment deprecated code * Update main.py use environment variables for connection * refactor: S3Bucket list_folders & list_files improve readability and handle empty buckets * Update main.py - restructure task - add retrieved_date option * clean setup * Update CONTRIBUTING.md lint & remove `pip install -r requirements.txt` step. * Update fwi_helpers.py * Update CONTRIBUTING.md add localstack guidelines * Update setup.py * refactor: type hinting in FWIHelpers class * feat: add 1 cell to connect more easily to s3 --------- Co-authored-by: Camille Modeste <camillemodeste@camilles-macbook-air.home> Co-authored-by: Alexis Cruveiller <33450491+Acruve15@users.noreply.github.com> Co-authored-by: Jules Dupont <jules.dupont@supagro.fr>
- Loading branch information
1 parent
8891277
commit 9d057fd
Showing
10 changed files
with
2,026 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
setup-dev: | ||
docker compose -f docker-compose.localstack.yml up -d --build | ||
docker compose exec localstack awslocal s3 mb s3://pyro-risk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '3.7' | ||
|
||
services: | ||
# ref link: https://github.com/localstack/localstack/blob/master/docker-compose.yml | ||
localstack: | ||
image: localstack/localstack:1.4.0 | ||
ports: | ||
- 4566:4566 | ||
# environment variables details: https://docs.localstack.cloud/references/configuration/ | ||
environment: | ||
- EDGE_PORT=4566 | ||
- SERVICES=s3 | ||
- ALLOW_NONSTANDARD_REGIONS=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +0,0 @@ | ||
from .version import __version__ | ||
from pyro_risks import config | ||
from pyro_risks import datasets | ||
from pyro_risks import models | ||
from pyro_risks import pipeline | ||
Oops, something went wrong.