Skip to content

Commit

Permalink
fix copy param
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun-Wu committed Nov 29, 2024
1 parent 6606406 commit 161ee88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecoscope/base/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import warnings
from functools import cached_property

import geopandas as gpd
import numpy as np
Expand All @@ -13,7 +14,6 @@
RelocsSpeedFilter,
TrajSegFilter,
)
from functools import cached_property


class EcoDataFrame(gpd.GeoDataFrame):
Expand Down Expand Up @@ -352,7 +352,7 @@ def from_relocations(cls, gdf, *args, **kwargs):
assert isinstance(gdf, Relocations)
assert {"groupby_col", "fixtime", "geometry"}.issubset(gdf)

if kwargs.get("copy") is not False:
if kwargs.get("copy"):
gdf = gdf.copy()

gdf = EcoDataFrame(gdf)
Expand Down

0 comments on commit 161ee88

Please sign in to comment.