geo-activity-playground 1.12.0__py3-none-any.whl → 1.12.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.
- geo_activity_playground/core/activities.py +5 -1
- geo_activity_playground/webui/blueprints/activity_blueprint.py +1 -1
- geo_activity_playground/webui/blueprints/settings_blueprint.py +19 -9
- geo_activity_playground/webui/templates/explorer/server-side.html.j2 +3 -2
- {geo_activity_playground-1.12.0.dist-info → geo_activity_playground-1.12.2.dist-info}/METADATA +2 -4
- {geo_activity_playground-1.12.0.dist-info → geo_activity_playground-1.12.2.dist-info}/RECORD +9 -9
- {geo_activity_playground-1.12.0.dist-info → geo_activity_playground-1.12.2.dist-info}/LICENSE +0 -0
- {geo_activity_playground-1.12.0.dist-info → geo_activity_playground-1.12.2.dist-info}/WHEEL +0 -0
- {geo_activity_playground-1.12.0.dist-info → geo_activity_playground-1.12.2.dist-info}/entry_points.txt +0 -0
|
@@ -133,4 +133,8 @@ def _make_value_clamp(values: pd.Series) -> tuple[float, float, Callable]:
|
|
|
133
133
|
max(values_without_na),
|
|
134
134
|
np.median(values_without_na) + 1.5 * inter_quartile_range(values_without_na),
|
|
135
135
|
)
|
|
136
|
-
return
|
|
136
|
+
return (
|
|
137
|
+
low,
|
|
138
|
+
high,
|
|
139
|
+
lambda value: min(max((value - low) / (high - low + 1e-20), 0.0), 1.0),
|
|
140
|
+
)
|
|
@@ -445,7 +445,7 @@ def make_activity_blueprint(
|
|
|
445
445
|
def download_original(id: int) -> ResponseReturnValue:
|
|
446
446
|
activity = DB.session.get_one(Activity, id)
|
|
447
447
|
path = pathlib.Path(activity.path)
|
|
448
|
-
with open(path) as f:
|
|
448
|
+
with open(path, "rb") as f:
|
|
449
449
|
return Response(
|
|
450
450
|
f.read(),
|
|
451
451
|
mimetype="application/octet-stream",
|
|
@@ -188,15 +188,17 @@ def make_settings_blueprint(
|
|
|
188
188
|
@needs_authentication(authenticator)
|
|
189
189
|
def color_strategy():
|
|
190
190
|
if request.method == "POST":
|
|
191
|
-
config_accessor().color_strategy_max_cluster_color =
|
|
192
|
-
"color_strategy_max_cluster_color"
|
|
193
|
-
|
|
194
|
-
config_accessor().color_strategy_max_cluster_other_color =
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
191
|
+
config_accessor().color_strategy_max_cluster_color = _add_alpha_if_needed(
|
|
192
|
+
request.form["color_strategy_max_cluster_color"]
|
|
193
|
+
)
|
|
194
|
+
config_accessor().color_strategy_max_cluster_other_color = (
|
|
195
|
+
_add_alpha_if_needed(
|
|
196
|
+
request.form["color_strategy_max_cluster_other_color"]
|
|
197
|
+
)
|
|
198
|
+
)
|
|
199
|
+
config_accessor().color_strategy_visited_color = _add_alpha_if_needed(
|
|
200
|
+
request.form["color_strategy_visited_color"]
|
|
201
|
+
)
|
|
200
202
|
config_accessor().color_strategy_cmap_opacity = float(
|
|
201
203
|
request.form["color_strategy_cmap_opacity"]
|
|
202
204
|
)
|
|
@@ -624,3 +626,11 @@ def save_privacy_zones(
|
|
|
624
626
|
config_accessor().privacy_zones = new_zone_config
|
|
625
627
|
config_accessor.save()
|
|
626
628
|
flash("Updated privacy zones.", category="success")
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
def _add_alpha_if_needed(color_str: str) -> str:
|
|
632
|
+
if 6 <= len(color_str) <= 7:
|
|
633
|
+
color_str += "4d"
|
|
634
|
+
if len(color_str) == 7:
|
|
635
|
+
color_str = "#" + color_str
|
|
636
|
+
return color_str
|
|
@@ -52,8 +52,6 @@
|
|
|
52
52
|
</div>
|
|
53
53
|
</div>
|
|
54
54
|
|
|
55
|
-
<p><a href="{{ url_for('settings.color_strategy') }}">Modify color values</a>.</p>
|
|
56
|
-
|
|
57
55
|
{% if bookmarks %}
|
|
58
56
|
<h2 class="mb-3">Bookmarked cluster sizes</h2>
|
|
59
57
|
|
|
@@ -107,6 +105,9 @@
|
|
|
107
105
|
</div>
|
|
108
106
|
</div>
|
|
109
107
|
|
|
108
|
+
<h2 class="mb-3">Tile coloring</h2>
|
|
109
|
+
<p><a href="{{ url_for('settings.color_strategy') }}">Modify color values</a>.</p>
|
|
110
|
+
|
|
110
111
|
<h2 class="mb-3">Tile URLs</h2>
|
|
111
112
|
|
|
112
113
|
<p>You can use the overlay tiles with other services like <a href="https://bikerouter.de/" target="_blank">Bike
|
{geo_activity_playground-1.12.0.dist-info → geo_activity_playground-1.12.2.dist-info}/METADATA
RENAMED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: geo-activity-playground
|
|
3
|
-
Version: 1.12.
|
|
3
|
+
Version: 1.12.2
|
|
4
4
|
Summary: Analysis of geo data activities like rides, runs or hikes.
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Martin Ueding
|
|
7
7
|
Author-email: mu@martin-ueding.de
|
|
8
|
-
Requires-Python: >=3.
|
|
8
|
+
Requires-Python: >=3.12,<3.15
|
|
9
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
13
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
12
|
Classifier: Programming Language :: Python :: 3.13
|
|
15
13
|
Requires-Dist: Pillow (>=11.0.0,<12.0.0)
|
{geo_activity_playground-1.12.0.dist-info → geo_activity_playground-1.12.2.dist-info}/RECORD
RENAMED
|
@@ -18,7 +18,7 @@ geo_activity_playground/alembic/versions/e02e27876deb_add_square_planner_bookmar
|
|
|
18
18
|
geo_activity_playground/alembic/versions/f2f50843be2d_make_all_fields_in_activity_nullable.py,sha256=b0GnskwsjyyftveEDD8Kaff8Vk1gZjikZPrkAW9AbHY,1321
|
|
19
19
|
geo_activity_playground/alembic/versions/script.py.mako,sha256=3qBrHBf7F7ChKDUIdiNItiSXrDpgQdM7sR0YKzpaC50,689
|
|
20
20
|
geo_activity_playground/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
21
|
-
geo_activity_playground/core/activities.py,sha256
|
|
21
|
+
geo_activity_playground/core/activities.py,sha256=AY_W-ujijl50zL2Y4me2A1FDCCk7z-Ri5j9-XLEM6Bw,4731
|
|
22
22
|
geo_activity_playground/core/config.py,sha256=sLC9OLpvOjjOuyhhw1tS-KjHiUuZJp3BNkprR9YB3Wc,5573
|
|
23
23
|
geo_activity_playground/core/coordinates.py,sha256=rW_OmMRpTUyIsQwrT6mgT9Y6uPGuwqTo5XDDMS7mGuo,1140
|
|
24
24
|
geo_activity_playground/core/copernicus_dem.py,sha256=t6Bc9fsyGyx1awdePXvlN-Zc-tiT2eGSJ80SV5B1Z9A,2944
|
|
@@ -65,7 +65,7 @@ geo_activity_playground/webui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
|
|
|
65
65
|
geo_activity_playground/webui/app.py,sha256=Z1P0Asfr3R-NVuAAzrinE4HRwv4tkOErooILvC2biRI,11107
|
|
66
66
|
geo_activity_playground/webui/authenticator.py,sha256=dhREYOu_TCD_nzFNuSlHIbf5K6TmwKdXtr1wxD8fBcc,1491
|
|
67
67
|
geo_activity_playground/webui/blueprints/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
68
|
-
geo_activity_playground/webui/blueprints/activity_blueprint.py,sha256=
|
|
68
|
+
geo_activity_playground/webui/blueprints/activity_blueprint.py,sha256=8le7DZxWAwviDqf8OhaQDcagdfn8LQi88T0hAMqM5f8,26819
|
|
69
69
|
geo_activity_playground/webui/blueprints/auth_blueprint.py,sha256=iCm3hZphQKR9qFgytOrfnSmr-Og1gHuQ1Djiv2o_bkE,1031
|
|
70
70
|
geo_activity_playground/webui/blueprints/bubble_chart_blueprint.py,sha256=Hgp1WLn_6rv4no1erqOWMl3ToZOGHsAwA5BUFw0aZLU,2892
|
|
71
71
|
geo_activity_playground/webui/blueprints/calendar_blueprint.py,sha256=rJTJGKn68ED71vu5w7xXjHNfiABXeOHOcxphYsmo3aI,2951
|
|
@@ -79,7 +79,7 @@ geo_activity_playground/webui/blueprints/heatmap_blueprint.py,sha256=prERVBOxq2x
|
|
|
79
79
|
geo_activity_playground/webui/blueprints/photo_blueprint.py,sha256=i4-AS9icK6pDypTdl-coTZyKldXtpukGiNbKsihfpl0,7299
|
|
80
80
|
geo_activity_playground/webui/blueprints/plot_builder_blueprint.py,sha256=SttkVghm4msPmEbSmxZj3e1Q-e2-YdhH6zjZGaiYEQg,3844
|
|
81
81
|
geo_activity_playground/webui/blueprints/search_blueprint.py,sha256=hY3hfGTip24AEf7NVTPtQt2hj7MEAcG3gbJd42NY3Ic,2258
|
|
82
|
-
geo_activity_playground/webui/blueprints/settings_blueprint.py,sha256=
|
|
82
|
+
geo_activity_playground/webui/blueprints/settings_blueprint.py,sha256=YVWSmtQJGkd3X3T_SJ_Ih0yqUch4ojJETH2UJ1JGZHw,23332
|
|
83
83
|
geo_activity_playground/webui/blueprints/square_planner_blueprint.py,sha256=xVaxJxmt8Dysl3UL9f2y__LVLtTH2Np1Ust4OSXKRAk,4746
|
|
84
84
|
geo_activity_playground/webui/blueprints/summary_blueprint.py,sha256=giVLJttJ2myJ6n5Xg5aq3hFvfu7MPo1euyYZGVAaBBk,6746
|
|
85
85
|
geo_activity_playground/webui/blueprints/tile_blueprint.py,sha256=YzZf9OrNdjhc1_j4MtO1DMcw1uCv29ueNsYd-mWqgbg,837
|
|
@@ -141,7 +141,7 @@ geo_activity_playground/webui/templates/eddington/distance.html.j2,sha256=9cLlIr
|
|
|
141
141
|
geo_activity_playground/webui/templates/eddington/elevation_gain.html.j2,sha256=h2mI1Uc1-P7rN_SeCVP_uadpQqX09ZpBG3Z6N8QWNLw,4723
|
|
142
142
|
geo_activity_playground/webui/templates/elevation_eddington/index.html.j2,sha256=WjquRFWaMzIZrvByhRIuhJbSCUW2HTfMck6THQHZI-I,4743
|
|
143
143
|
geo_activity_playground/webui/templates/equipment/index.html.j2,sha256=6pzSCJACMXA1fKgsO_KrCTvpumAKlelzj5f9dReey14,1742
|
|
144
|
-
geo_activity_playground/webui/templates/explorer/server-side.html.j2,sha256=
|
|
144
|
+
geo_activity_playground/webui/templates/explorer/server-side.html.j2,sha256=K6Bov5D3dpiW8XgqCp3cJWZvUBxNoAUu7cMNVaQEeUQ,5570
|
|
145
145
|
geo_activity_playground/webui/templates/export/index.html.j2,sha256=vxqpAm9KnT405Qz7q0_td-HZ4mCjcPR4Lp6EnIEWisg,1652
|
|
146
146
|
geo_activity_playground/webui/templates/hall_of_fame/index.html.j2,sha256=P15fVPjXf0Wf6K_hd_lCMuw6-Q8_qfNqsBOWNpMfoXw,1804
|
|
147
147
|
geo_activity_playground/webui/templates/heatmap/index.html.j2,sha256=Q99v4LP5EnuvDYKayL52qujWaIroLsD89ly2cM2YvTI,1420
|
|
@@ -178,8 +178,8 @@ geo_activity_playground/webui/templates/summary/vega-chart.html.j2,sha256=mw8Hti
|
|
|
178
178
|
geo_activity_playground/webui/templates/time_zone_fixer/index.html.j2,sha256=s9r6BJMXmd7kLSyjkvH4xLi6e01S5bpGRcMgMMJyCAE,1760
|
|
179
179
|
geo_activity_playground/webui/templates/upload/index.html.j2,sha256=5W2gpm4eSvidOyJOCSZZbvTZaTkSWNrOWux3-oIm0zI,784
|
|
180
180
|
geo_activity_playground/webui/templates/upload/reload.html.j2,sha256=YZWX5eDeNyqKJdQAywDBcU8DZBm22rRBbZqFjrFrCvQ,556
|
|
181
|
-
geo_activity_playground-1.12.
|
|
182
|
-
geo_activity_playground-1.12.
|
|
183
|
-
geo_activity_playground-1.12.
|
|
184
|
-
geo_activity_playground-1.12.
|
|
185
|
-
geo_activity_playground-1.12.
|
|
181
|
+
geo_activity_playground-1.12.2.dist-info/LICENSE,sha256=4RpAwKO8bPkfXH2lnpeUW0eLkNWglyG4lbrLDU_MOwY,1070
|
|
182
|
+
geo_activity_playground-1.12.2.dist-info/METADATA,sha256=0yPugHx4y1UoKRI1Jy37Xu-vC-MIUvXz-Qym23Eyh10,1836
|
|
183
|
+
geo_activity_playground-1.12.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
184
|
+
geo_activity_playground-1.12.2.dist-info/entry_points.txt,sha256=pbNlLI6IIZIp7nPYCfAtiSiz2oxJSCl7DODD6SPkLKk,81
|
|
185
|
+
geo_activity_playground-1.12.2.dist-info/RECORD,,
|
{geo_activity_playground-1.12.0.dist-info → geo_activity_playground-1.12.2.dist-info}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|