Skip to content

Commit

Permalink
Fix get_events() timestamp format issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun-Wu committed Nov 27, 2023
1 parent 6cde6b3 commit b7a7a60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion ecoscope/io/earthranger.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def get_events(
)

assert not df.empty
df["time"] = pd.to_datetime(df["time"])
df["time"] = pd.to_datetime(df["time"], format="mixed")

df = gpd.GeoDataFrame(df)
df.loc[~df["geojson"].isna(), "geometry"] = gpd.GeoDataFrame.from_features(
Expand Down
1 change: 0 additions & 1 deletion tests/test_earthranger_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def test_get_subjectgroup_observations(er_io):
assert "groupby_col" in relocations


@pytest.mark.skip(reason="this has been failing since May 2022; will be fixed in a follow-up pull")
def test_get_events(er_events_io):
events = er_events_io.get_events()
assert not events.empty
Expand Down

0 comments on commit b7a7a60

Please sign in to comment.