geo-activity-playground 0.16.0__py3-none-any.whl → 0.16.1__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.
@@ -1,8 +1,6 @@
1
1
  import datetime
2
2
  import gzip
3
- import os
4
3
  import pathlib
5
- import tempfile
6
4
  import xml
7
5
 
8
6
  import dateutil.parser
@@ -161,10 +159,11 @@ def read_tcx_activity(path: pathlib.Path, open) -> pd.DataFrame:
161
159
  with open(path, "rb") as f:
162
160
  content = f.read().strip()
163
161
 
164
- with tempfile.NamedTemporaryFile("wb", dir=os.getcwd(), suffix=".tcx") as f:
162
+ stripped_file = pathlib.Path("Cache/temp.tcx")
163
+ with open(stripped_file, "wb") as f:
165
164
  f.write(content)
166
- f.flush()
167
- data = tcx_reader.read(f.name)
165
+ data = tcx_reader.read(str(stripped_file))
166
+ stripped_file.unlink()
168
167
 
169
168
  for trackpoint in data.trackpoints:
170
169
  if trackpoint.latitude and trackpoint.longitude:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geo-activity-playground
3
- Version: 0.16.0
3
+ Version: 0.16.1
4
4
  Summary: Analysis of geo data activities like rides, runs or hikes.
5
5
  License: MIT
6
6
  Author: Martin Ueding
@@ -2,7 +2,7 @@ geo_activity_playground/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
2
2
  geo_activity_playground/__main__.py,sha256=kEMt2o36XKGegtoDl1hZouqbml0KD_CFKCaYl1SUvTM,4199
3
3
  geo_activity_playground/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  geo_activity_playground/core/activities.py,sha256=oHbmbwqJrcwjMyWdvexSlV0VE58cb89XBJ1tB_61LKE,8077
5
- geo_activity_playground/core/activity_parsers.py,sha256=jB8xmJVDMFFclhVL-PGcbyVSwbE9ofddl4WuaDnO_7o,7541
5
+ geo_activity_playground/core/activity_parsers.py,sha256=vaILWKk1JvsOuCMtD0pzK4DzK7Ll2PuEsLJv5q5akhw,7543
6
6
  geo_activity_playground/core/cache_migrations.py,sha256=SklukiUYiAdmti1E8GK5Ct51dHwkFfuQZ6K-YvSr6mc,2095
7
7
  geo_activity_playground/core/config.py,sha256=GNHEIeFI3dNRiFSMburn5URZHx0qkiitvePAx2toYUQ,456
8
8
  geo_activity_playground/core/coordinates.py,sha256=tDfr9mlXhK6E_MMIJ0vYWVCoH0Lq8uyuaqUgaa8i0jg,966
@@ -50,8 +50,8 @@ geo_activity_playground/webui/templates/index.html.j2,sha256=xWKrXhcCefi856cLkiz
50
50
  geo_activity_playground/webui/templates/page.html.j2,sha256=OdvGW2I7VxxvMCiI_Hyg8mWrgznXu53um0l7BQRwQsg,6092
51
51
  geo_activity_playground/webui/templates/search.html.j2,sha256=lYFe9PzP8gqTenhZuf1yOISG5kaCjBnCcvltuB_7EDs,1066
52
52
  geo_activity_playground/webui/templates/summary-statistics.html.j2,sha256=eEwcPOURJ-uT89jeJGZHq_5pSq56_fTC7z-j_m5nQiA,471
53
- geo_activity_playground-0.16.0.dist-info/LICENSE,sha256=4RpAwKO8bPkfXH2lnpeUW0eLkNWglyG4lbrLDU_MOwY,1070
54
- geo_activity_playground-0.16.0.dist-info/METADATA,sha256=UMBxnxh73M4DwybPrWpV7OBE5Xe4b74fAuMNSv4HBoE,1515
55
- geo_activity_playground-0.16.0.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
56
- geo_activity_playground-0.16.0.dist-info/entry_points.txt,sha256=pbNlLI6IIZIp7nPYCfAtiSiz2oxJSCl7DODD6SPkLKk,81
57
- geo_activity_playground-0.16.0.dist-info/RECORD,,
53
+ geo_activity_playground-0.16.1.dist-info/LICENSE,sha256=4RpAwKO8bPkfXH2lnpeUW0eLkNWglyG4lbrLDU_MOwY,1070
54
+ geo_activity_playground-0.16.1.dist-info/METADATA,sha256=1FOdcPySBXQ0CG9JihtyQa-u4aQb2sdiCjH8IXHiWKM,1515
55
+ geo_activity_playground-0.16.1.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
56
+ geo_activity_playground-0.16.1.dist-info/entry_points.txt,sha256=pbNlLI6IIZIp7nPYCfAtiSiz2oxJSCl7DODD6SPkLKk,81
57
+ geo_activity_playground-0.16.1.dist-info/RECORD,,