geo-activity-playground 0.40.0__tar.gz → 0.40.1__tar.gz

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.
Files changed (144) hide show
  1. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/PKG-INFO +1 -1
  2. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/datamodel.py +2 -2
  3. geo_activity_playground-0.40.1/geo_activity_playground/core/test_datamodel.py +20 -0
  4. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/importers/strava_checkout.py +2 -5
  5. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/pyproject.toml +1 -1
  6. geo_activity_playground-0.40.0/geo_activity_playground/core/test_datamodel.py +0 -7
  7. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/LICENSE +0 -0
  8. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/__init__.py +0 -0
  9. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/__main__.py +0 -0
  10. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/alembic/README +0 -0
  11. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/alembic/env.py +0 -0
  12. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/alembic/script.py.mako +0 -0
  13. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/alembic/versions/451e7836b53d_add_square_planner_bookmark.py +0 -0
  14. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/alembic/versions/63d3b7f6f93c_initial_version.py +0 -0
  15. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/alembic/versions/93cc82ad1b60_add_parametricplotspec.py +0 -0
  16. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/alembic/versions/ab83b9d23127_add_upstream_id.py +0 -0
  17. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/alembic/versions/b03491c593f6_add_crop_indices.py +0 -0
  18. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/alembic/versions/e02e27876deb_add_square_planner_bookmark_name.py +0 -0
  19. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/alembic/versions/script.py.mako +0 -0
  20. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/__init__.py +0 -0
  21. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/activities.py +0 -0
  22. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/config.py +0 -0
  23. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/coordinates.py +0 -0
  24. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/enrichment.py +0 -0
  25. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/heart_rate.py +0 -0
  26. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/meta_search.py +0 -0
  27. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/parametric_plot.py +0 -0
  28. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/paths.py +0 -0
  29. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/privacy_zones.py +0 -0
  30. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/raster_map.py +0 -0
  31. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/similarity.py +0 -0
  32. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/summary_stats.py +0 -0
  33. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/tasks.py +0 -0
  34. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/test_meta_search.py +0 -0
  35. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/test_summary_stats.py +0 -0
  36. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/test_tiles.py +0 -0
  37. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/test_time_conversion.py +0 -0
  38. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/tiles.py +0 -0
  39. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/core/time_conversion.py +0 -0
  40. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/explorer/__init__.py +0 -0
  41. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/explorer/grid_file.py +0 -0
  42. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/explorer/tile_visits.py +0 -0
  43. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/explorer/video.py +0 -0
  44. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/heatmap_video.py +0 -0
  45. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/importers/__init__.py +0 -0
  46. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/importers/activity_parsers.py +0 -0
  47. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/importers/csv_parser.py +0 -0
  48. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/importers/directory.py +0 -0
  49. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/importers/strava_api.py +0 -0
  50. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/importers/test_csv_parser.py +0 -0
  51. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/importers/test_directory.py +0 -0
  52. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/importers/test_strava_api.py +0 -0
  53. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/__init__.py +0 -0
  54. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/app.py +0 -0
  55. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/authenticator.py +0 -0
  56. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/__init__.py +0 -0
  57. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/activity_blueprint.py +0 -0
  58. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/auth_blueprint.py +0 -0
  59. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/bubble_chart_blueprint.py +0 -0
  60. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/calendar_blueprint.py +0 -0
  61. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/eddington_blueprint.py +0 -0
  62. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/entry_views.py +0 -0
  63. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/equipment_blueprint.py +0 -0
  64. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/explorer_blueprint.py +0 -0
  65. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/heatmap_blueprint.py +0 -0
  66. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/plot_builder_blueprint.py +0 -0
  67. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/search_blueprint.py +0 -0
  68. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/settings_blueprint.py +0 -0
  69. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/square_planner_blueprint.py +0 -0
  70. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/summary_blueprint.py +0 -0
  71. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/tile_blueprint.py +0 -0
  72. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/blueprints/upload_blueprint.py +0 -0
  73. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/flasher.py +0 -0
  74. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/plot_util.py +0 -0
  75. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/search_util.py +0 -0
  76. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/Leaflet.fullscreen.min.js +0 -0
  77. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/MarkerCluster.Default.css +0 -0
  78. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/MarkerCluster.css +0 -0
  79. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/android-chrome-192x192.png +0 -0
  80. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/android-chrome-512x512.png +0 -0
  81. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/apple-touch-icon.png +0 -0
  82. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/bootstrap-dark-mode.js +0 -0
  83. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/bootstrap.bundle.min.js +0 -0
  84. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/bootstrap.min.css +0 -0
  85. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/browserconfig.xml +0 -0
  86. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/favicon-16x16.png +0 -0
  87. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/favicon-32x32.png +0 -0
  88. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/favicon-48x48.png +0 -0
  89. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/favicon.ico +0 -0
  90. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/favicon.svg +0 -0
  91. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/fullscreen.png +0 -0
  92. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/fullscreen@2x.png +0 -0
  93. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/images/layers-2x.png +0 -0
  94. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/images/layers.png +0 -0
  95. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/images/marker-icon-2x.png +0 -0
  96. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/images/marker-icon.png +0 -0
  97. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/images/marker-shadow.png +0 -0
  98. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/leaflet.css +0 -0
  99. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/leaflet.fullscreen.css +0 -0
  100. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/leaflet.js +0 -0
  101. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/leaflet.markercluster.js +0 -0
  102. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/mstile-150x150.png +0 -0
  103. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/site.webmanifest +0 -0
  104. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/table-sort.min.js +0 -0
  105. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/vega-embed@6 +0 -0
  106. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/vega-lite@4 +0 -0
  107. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/vega@5 +0 -0
  108. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/web-app-manifest-192x192.png +0 -0
  109. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/static/web-app-manifest-512x512.png +0 -0
  110. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/activity/day.html.j2 +0 -0
  111. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/activity/edit.html.j2 +0 -0
  112. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/activity/lines.html.j2 +0 -0
  113. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/activity/name.html.j2 +0 -0
  114. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/activity/show.html.j2 +0 -0
  115. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/activity/trim.html.j2 +0 -0
  116. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/auth/index.html.j2 +0 -0
  117. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/bubble_chart/index.html.j2 +0 -0
  118. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/calendar/index.html.j2 +0 -0
  119. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/calendar/month.html.j2 +0 -0
  120. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/eddington/index.html.j2 +0 -0
  121. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/equipment/index.html.j2 +0 -0
  122. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/explorer/index.html.j2 +0 -0
  123. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/heatmap/index.html.j2 +0 -0
  124. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/home.html.j2 +0 -0
  125. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/page.html.j2 +0 -0
  126. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/plot_builder/edit.html.j2 +0 -0
  127. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/plot_builder/index.html.j2 +0 -0
  128. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/search/index.html.j2 +0 -0
  129. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/search_form.html.j2 +0 -0
  130. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/settings/admin-password.html.j2 +0 -0
  131. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/settings/color-schemes.html.j2 +0 -0
  132. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/settings/heart-rate.html.j2 +0 -0
  133. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/settings/index.html.j2 +0 -0
  134. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/settings/manage-equipments.html.j2 +0 -0
  135. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/settings/manage-kinds.html.j2 +0 -0
  136. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/settings/metadata-extraction.html.j2 +0 -0
  137. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/settings/privacy-zones.html.j2 +0 -0
  138. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/settings/segmentation.html.j2 +0 -0
  139. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/settings/sharepic.html.j2 +0 -0
  140. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/settings/strava.html.j2 +0 -0
  141. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/square_planner/index.html.j2 +0 -0
  142. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/summary/index.html.j2 +0 -0
  143. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/upload/index.html.j2 +0 -0
  144. {geo_activity_playground-0.40.0 → geo_activity_playground-0.40.1}/geo_activity_playground/webui/templates/upload/reload.html.j2 +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geo-activity-playground
3
- Version: 0.40.0
3
+ Version: 0.40.1
4
4
  Summary: Analysis of geo data activities like rides, runs or hikes.
5
5
  License: MIT
6
6
  Author: Martin Ueding
@@ -112,12 +112,12 @@ class Activity(DB.Model):
112
112
 
113
113
  @property
114
114
  def average_speed_moving_kmh(self) -> Optional[float]:
115
- if self.moving_time is not None:
115
+ if self.moving_time:
116
116
  return self.distance_km / (self.moving_time.total_seconds() / 3_600)
117
117
 
118
118
  @property
119
119
  def average_speed_elapsed_kmh(self) -> Optional[float]:
120
- if self.elapsed_time is not None:
120
+ if self.elapsed_time:
121
121
  return self.distance_km / (self.elapsed_time.total_seconds() / 3_600)
122
122
 
123
123
  @property
@@ -0,0 +1,20 @@
1
+ import datetime
2
+
3
+ from .datamodel import Activity
4
+
5
+
6
+ def test_no_duration() -> None:
7
+ activity = Activity(name="Test", distance_km=10.0)
8
+ assert activity.average_speed_elapsed_kmh is None
9
+ assert activity.average_speed_moving_kmh is None
10
+
11
+
12
+ def test_zero_duration() -> None:
13
+ activity = Activity(
14
+ name="Test",
15
+ distance_km=10.0,
16
+ elapsed_time=datetime.timedelta(seconds=0),
17
+ moving_time=datetime.timedelta(seconds=0),
18
+ )
19
+ assert activity.average_speed_elapsed_kmh is None
20
+ assert activity.average_speed_moving_kmh is None
@@ -271,9 +271,8 @@ def convert_strava_checkout(
271
271
  continue
272
272
 
273
273
  activity_date = dateutil.parser.parse(row["Activity Date"])
274
- activity_name = row["Activity Name"]
274
+ activity_name: str = row["Activity Name"]
275
275
  activity_kind = row["Activity Type"]
276
- is_commute = row["Commute"] == "true" or row["Commute"] == True
277
276
  equipment = (
278
277
  nan_as_none(row["Activity Gear"])
279
278
  or nan_as_none(row["Bike"])
@@ -285,8 +284,6 @@ def convert_strava_checkout(
285
284
  activity_target = playground_path / "Activities" / str(activity_kind)
286
285
  if equipment:
287
286
  activity_target /= str(equipment)
288
- if is_commute:
289
- activity_target /= "Commute"
290
287
 
291
288
  activity_target /= "".join(
292
289
  [
@@ -294,7 +291,7 @@ def convert_strava_checkout(
294
291
  "-",
295
292
  f"{activity_date.hour:02d}-{activity_date.minute:02d}-{activity_date.second:02d}",
296
293
  " ",
297
- activity_name,
294
+ activity_name.replace("/", "_"),
298
295
  ]
299
296
  + activity_file.suffixes
300
297
  )
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "geo-activity-playground"
3
- version = "0.40.0"
3
+ version = "0.40.1"
4
4
  description = "Analysis of geo data activities like rides, runs or hikes."
5
5
  authors = ["Martin Ueding <mu@martin-ueding.de>"]
6
6
  license = "MIT"
@@ -1,7 +0,0 @@
1
- from .datamodel import Activity
2
-
3
-
4
- def test_zero_duration() -> None:
5
- activity = Activity(name="Test", distance_km=10.0)
6
- assert activity.average_speed_elapsed_kmh is None
7
- assert activity.average_speed_moving_kmh is None