Skip to content

Commit

Permalink
inversion des arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
linogaliana committed Oct 20, 2023
1 parent 5ad042b commit 7a358b2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cartiflette/download/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def _upload_raw_dataset_to_s3(
"year": layer.year,
"borders": None,
"crs": layer.crs,
"filter_by": None,
"value": None,
"filter_by": "origin",
"value": "raw",
"vectorfile_format": layer.format,
"provider": layer.provider,
"dataset_family": layer.dataset_family,
Expand Down
6 changes: 3 additions & 3 deletions cartiflette/utils/create_path_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ def create_path_bucket(config: ConfigDict) -> str:

write_path = (
f"{bucket}/{path_within_bucket}"
f"/{provider=}"
f"/{dataset_family=}"
f"/{source=}"
f"/{year=}"
f"/administrative_level={borders}"
f"/{crs=}"
f"/{filter_by}={value}"
f"/{vectorfile_format=}"
f"/{provider=}"
f"/{dataset_family=}"
f"/{source=}"
f"/{territory=}"
).replace("'", "")

Expand Down
9 changes: 9 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
geopandas
openpyxl
PyYAML
py7zr
requests
s3fs
topojson
tqdm
xlrd

0 comments on commit 7a358b2

Please sign in to comment.