From 161ee88e91c2882700c76e0804f6736ff52adcba Mon Sep 17 00:00:00 2001 From: Yun Wu Date: Fri, 29 Nov 2024 14:00:02 +0800 Subject: [PATCH] fix copy param --- ecoscope/base/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ecoscope/base/base.py b/ecoscope/base/base.py index 8dfc7d10..4bb886e5 100644 --- a/ecoscope/base/base.py +++ b/ecoscope/base/base.py @@ -1,4 +1,5 @@ import warnings +from functools import cached_property import geopandas as gpd import numpy as np @@ -13,7 +14,6 @@ RelocsSpeedFilter, TrajSegFilter, ) -from functools import cached_property class EcoDataFrame(gpd.GeoDataFrame): @@ -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)