geo-activity-playground 1.9.1__py3-none-any.whl → 1.9.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -187,7 +187,9 @@ def enrichment_distance(
187
187
  * 3600
188
188
  )
189
189
  # Division by zero causes infinity. We replace these with NaN and interpolate the values instead.
190
- time_series["speed"] = time_series["speed"].replace([np.inf, -np.inf], np.nan)
190
+ time_series["speed"] = time_series["speed"].replace(
191
+ [0, np.inf, -np.inf], np.nan
192
+ )
191
193
  time_series.interpolate(inplace=True)
192
194
 
193
195
  changed = True
@@ -229,7 +229,7 @@ def read_gpx_activity(path: pathlib.Path, open) -> pd.DataFrame:
229
229
  points.append(row)
230
230
  df = pd.DataFrame(points)
231
231
  # Some files don't have elevation information. In these cases we remove the column.
232
- if not df["elevation"].any():
232
+ if "elevation" in df.columns and not df["elevation"].any():
233
233
  del df["elevation"]
234
234
  return df
235
235
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geo-activity-playground
3
- Version: 1.9.1
3
+ Version: 1.9.2
4
4
  Summary: Analysis of geo data activities like rides, runs or hikes.
5
5
  License: MIT
6
6
  Author: Martin Ueding
@@ -22,7 +22,7 @@ geo_activity_playground/core/config.py,sha256=mmdMQ5iCLNGnAlriT1ETEVS-gM6Aq_9sg2
22
22
  geo_activity_playground/core/coordinates.py,sha256=rW_OmMRpTUyIsQwrT6mgT9Y6uPGuwqTo5XDDMS7mGuo,1140
23
23
  geo_activity_playground/core/copernicus_dem.py,sha256=t6Bc9fsyGyx1awdePXvlN-Zc-tiT2eGSJ80SV5B1Z9A,2944
24
24
  geo_activity_playground/core/datamodel.py,sha256=yuq3XCynetp1OlMr3fpSlXBArElgzdfejbqnJJX-xC4,16728
25
- geo_activity_playground/core/enrichment.py,sha256=QMJla3r27Ejwa1fiS1Fc81m4oP8wiVHkdT1M0z830zE,8863
25
+ geo_activity_playground/core/enrichment.py,sha256=NmbeIIPhSbT_J60el_areAnBtiLJs7aGf_vNGWp_9Sk,8888
26
26
  geo_activity_playground/core/export.py,sha256=ayOmhWL72263oP9NLIZRYCg_Db0GLUFhgNIL_MCrV-E,4435
27
27
  geo_activity_playground/core/heart_rate.py,sha256=-S3WAhS7AOywrw_Lk5jfuo_fu6zvZQ1VtjwEKSycWpU,1542
28
28
  geo_activity_playground/core/meta_search.py,sha256=Sevl4AtBwJZMW3VJ6ihRqwjC0M9fhJqX3MN6tw_hIFQ,6627
@@ -52,7 +52,7 @@ geo_activity_playground/explorer/tile_visits.py,sha256=DzAmZmyLSeGe8mIg6-Kx1gXtC
52
52
  geo_activity_playground/explorer/video.py,sha256=7j6Qv3HG6On7Tn7xh7Olwrx_fbQnfzS7CeRg3TEApHg,4397
53
53
  geo_activity_playground/heatmap_video.py,sha256=I8i1uVvbbPUXVtvLAROaLy58nQoUPnuMCZkERWNkQjg,3318
54
54
  geo_activity_playground/importers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
- geo_activity_playground/importers/activity_parsers.py,sha256=Ums6SQ_fggE2alwwDbZZakxbeLQz0_9Iq4limDTW31k,12431
55
+ geo_activity_playground/importers/activity_parsers.py,sha256=dWtumZM4igsfWSECDOazLjTEf1YcaU04wJJ45EhfCVw,12461
56
56
  geo_activity_playground/importers/csv_parser.py,sha256=O1pP5GLhWhnWcy2Lsrr9g17Zspuibpt-GtZ3ZS5eZF4,2143
57
57
  geo_activity_playground/importers/directory.py,sha256=sHcLIi0DOPEATt4wiE_vp00h89fO940wUQyJZUzzpnw,3978
58
58
  geo_activity_playground/importers/strava_api.py,sha256=1sRb_CD4tbsW-MwP6QPg7zpATlb6XpniS4rtH72iwkw,9606
@@ -175,8 +175,8 @@ geo_activity_playground/webui/templates/summary/vega-chart.html.j2,sha256=mw8Hti
175
175
  geo_activity_playground/webui/templates/time_zone_fixer/index.html.j2,sha256=s9r6BJMXmd7kLSyjkvH4xLi6e01S5bpGRcMgMMJyCAE,1760
176
176
  geo_activity_playground/webui/templates/upload/index.html.j2,sha256=5W2gpm4eSvidOyJOCSZZbvTZaTkSWNrOWux3-oIm0zI,784
177
177
  geo_activity_playground/webui/templates/upload/reload.html.j2,sha256=YZWX5eDeNyqKJdQAywDBcU8DZBm22rRBbZqFjrFrCvQ,556
178
- geo_activity_playground-1.9.1.dist-info/LICENSE,sha256=4RpAwKO8bPkfXH2lnpeUW0eLkNWglyG4lbrLDU_MOwY,1070
179
- geo_activity_playground-1.9.1.dist-info/METADATA,sha256=V9gUK_OtZhRCH_L5Toxxo2iHXvXQgyqs0s_8M616PHA,1937
180
- geo_activity_playground-1.9.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
181
- geo_activity_playground-1.9.1.dist-info/entry_points.txt,sha256=pbNlLI6IIZIp7nPYCfAtiSiz2oxJSCl7DODD6SPkLKk,81
182
- geo_activity_playground-1.9.1.dist-info/RECORD,,
178
+ geo_activity_playground-1.9.2.dist-info/LICENSE,sha256=4RpAwKO8bPkfXH2lnpeUW0eLkNWglyG4lbrLDU_MOwY,1070
179
+ geo_activity_playground-1.9.2.dist-info/METADATA,sha256=yulIhsXBd3Osqgumn4RYD31XflfkZdwaojp6Y54ZTAU,1937
180
+ geo_activity_playground-1.9.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
181
+ geo_activity_playground-1.9.2.dist-info/entry_points.txt,sha256=pbNlLI6IIZIp7nPYCfAtiSiz2oxJSCl7DODD6SPkLKk,81
182
+ geo_activity_playground-1.9.2.dist-info/RECORD,,