Skip to content

Commit

Permalink
Set fixed pynsee version until geodata cache bug is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrandje committed Aug 9, 2024
1 parent 238eaf4 commit 8329fbb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 6 additions & 1 deletion french_cities/ultramarine_pseudo_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ def _get_ultramarines_cities(
"""

area = "collectivitesDOutreMer"
um = get_area_list(area, date, update, silent=True)
um = get_area_list(
area,
date,
update,
# silent=True, # to reset once pynsee's bug is fixed
)
if date == "*":
warning = (
f"get_descending_area with {area=} does not support date='*': "
Expand Down
8 changes: 6 additions & 2 deletions french_cities/vintage.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def _get_parents_from_serie(
area=type_,
date=f"{year}-01-01",
type="commune",
silent=True,
# silent=True, # to reset once pynsee's bug is fixed
)
for code in tqdm(codes, desc="get parent from insee", leave=False):
parents.append(
Expand Down Expand Up @@ -353,7 +353,11 @@ def _get_subareas_year(
4 13205 13055
"""
subareas = get_area_list(area=type_, date=f"{year}-01-01", silent=True)
subareas = get_area_list(
area=type_,
date=f"{year}-01-01",
# silent=True # to reset once pynsee's bug is fixed
)
try:
subareas = subareas.drop("DATE_DELETION", axis=1)
except KeyError:
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "french-cities"
version = "1.0.1"
version = "1.0.2"
description = "Toolbox on french cities: set vintage, find departments, find cities..."
authors = ["thomas.grandjean <[email protected]>"]
license = "GPL-3.0-or-later"
Expand All @@ -26,9 +26,9 @@ requests-cache = "^1.2.1"
unidecode = "^1.3.6"
python-dotenv = "^1.0.0"
pandas = "^2.2.2"
geopandas = "^0.14.4"
geopandas = "^1.0.1"
rapidfuzz = "^3.1.1"
pynsee = "^0.1.8"
pynsee = "0.1.7"
pebble = "^5.0.3"
tqdm = "^4.65.0"
importlib-metadata = "^6.8.0"
Expand Down

0 comments on commit 8329fbb

Please sign in to comment.