Skip to content

Commit

Permalink
add pystac to dependencies (#317)
Browse files Browse the repository at this point in the history
* add pystac to dependencies

* update dask geopandas
  • Loading branch information
ValentinaHutter authored Feb 4, 2025
1 parent 10bf7c0 commit 7347beb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def drop_col(df, keep_var):
if isinstance(predictors, gpd.GeoDataFrame):
predictors = dask_geopandas.from_geopandas(predictors, npartitions=1)

if isinstance(predictors, dask_geopandas.core.GeoDataFrame):
if isinstance(predictors, dask_geopandas.expr.GeoDataFrame):
data_ddf = (
predictors.to_dask_dataframe().reset_index().repartition(npartitions=1)
)
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pandas = { version = ">=2.0.0", optional = true }
xarray = { version = ">=2022.11.0,<=2024.3.0", optional = true }
dask = {extras = ["array", "dataframe", "distributed"], version = ">=2023.4.0", optional = true}
rasterio = { version = "^1.3.4", optional = true }
dask-geopandas = { version = ">=0.2.0,<1", optional = true }
dask-geopandas = { version = "0.4.3", optional = true }
xgboost = { version = ">=1.5.1", optional = true }
rioxarray = { version = ">=0.12.0,<1", optional = true }
openeo-pg-parser-networkx = { version = ">=2024.7", optional = true }
Expand All @@ -44,6 +44,7 @@ joblib = { version = ">=1.3.2", optional = true }
geoparquet = "^0.0.3"
pyarrow = "^15.0.2"
numpy = { version = "<2.0.0", optional = false }
pystac = { version = "<1.12.0", optional = false }

[tool.poetry.group.dev.dependencies]
pytest = "^7.2.0"
Expand Down

0 comments on commit 7347beb

Please sign in to comment.