Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 22, 2022
1 parent 3926acb commit 1e79d8e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/test_gis.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ def ref():
path="creation_ref", module="era5", bounds=(X0, Y0, X1, Y1), time=TIME
)


@pytest.fixture(scope="session")
def geometry(tmp_path_factory):
tmp_path = tmp_path_factory.mktemp("geometries")
geometry = gpd.GeoSeries(
[box(X0 / 2 + X1 / 2, Y0 / 2 + Y1 / 2, X1, Y1)], crs="EPSG:4326",
index=[0], name="boxes"
[box(X0 / 2 + X1 / 2, Y0 / 2 + Y1 / 2, X1, Y1)],
crs="EPSG:4326",
index=[0],
name="boxes",
)
geometry = geometry.to_frame().set_geometry("boxes")

Expand All @@ -58,6 +61,7 @@ def geometry(tmp_path_factory):

return path


@pytest.fixture(scope="session")
def raster(tmp_path_factory):
tmp_path = tmp_path_factory.mktemp("rasters")
Expand Down

0 comments on commit 1e79d8e

Please sign in to comment.