Skip to content

Commit

Permalink
Version 0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
enrico-ubaldi-me committed Dec 15, 2022
1 parent acbb87b commit 39577c7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Binary file modified docs/examples/figures/pings_stops_locs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion mobilkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
The `mobilkit` module documentation.
'''

__version__ = "0.2.4.b"
__version__ = "0.2.6"
8 changes: 4 additions & 4 deletions mobilkit/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,13 +621,13 @@ def findStops(df,
return_meta[ldtColName] = return_meta[dttColName]
stops_df = df.groupby(uidColName)\
.apply(_find_stops,
meta=return_meta,
custom_stay_locations_kwds=stay_locations_kwds,
meta=return_meta,
).map_partitions(lambda d: d.reset_index(drop=True))\
.repartition(npartitions=200)
stops_df[durColName] = (stops_df[ldtColName]
- stops_df[dttColName]).dt.total_seconds()
if tesselation_shp:
if tesselation_shp is not None:
stops_df, _ = tessellate(stops_df, tesselation_shp, filterAreas=filterAreas)
return stops_df

Expand All @@ -652,7 +652,7 @@ def computeUsersLocations(stops_df,
db_eps=link_dist,
db_min_count=min_stops_count,
meta=out_meta,
).reset_index()
).reset_index(drop=True)
elif method == 'infostop':
try:
import infostop
Expand All @@ -663,7 +663,7 @@ def computeUsersLocations(stops_df,
.apply(_find_user_locations_INFOSTOP,
label_singleton=min_stops_count==1,
meta=out_meta,
).reset_index()
).reset_index(drop=True)
else:
raise RuntimeError('Location detection method %s not implemented!' % method)

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[metadata]
name = mobilkit
version = 0.2.5
version = 0.2.6
author = MindEarth
author_email = [email protected]
description = A Python Toolkit for Urban Resilience and Disaster Risk Management Analytics using High Frequency Human Mobility Data
Expand Down

0 comments on commit 39577c7

Please sign in to comment.