geo-activity-playground 1.4.0__py3-none-any.whl → 1.4.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.
@@ -302,51 +302,51 @@ def make_explorer_blueprint(
302
302
  tile_x = x // factor
303
303
  tile_y = y // factor
304
304
  tile_xy = (tile_x, tile_y)
305
- result = color_strategy.color_image(tile_xy, grayscale)
305
+ result = color_strategy.color_image(tile_xy, grayscale).copy()
306
306
 
307
307
  if x % factor == 0:
308
308
  result[:, 0, :] = 0.5
309
309
  if y % factor == 0:
310
310
  result[0, :, :] = 0.5
311
311
 
312
+ if (
313
+ evolution_state.square_x is not None
314
+ and evolution_state.square_y is not None
315
+ ):
312
316
  if (
313
- evolution_state.square_x is not None
314
- and evolution_state.square_y is not None
317
+ x % factor == 0
318
+ and tile_x == evolution_state.square_x
319
+ and evolution_state.square_y
320
+ <= tile_y
321
+ < evolution_state.square_y + evolution_state.max_square_size
315
322
  ):
316
- if (
317
- x % factor == 0
318
- and tile_x == evolution_state.square_x
319
- and evolution_state.square_y
320
- <= tile_y
321
- < evolution_state.square_y + evolution_state.max_square_size
322
- ):
323
- result[:, 0:square_line_width] = square_color
324
- if (
325
- y % factor == 0
326
- and tile_y == evolution_state.square_y
327
- and evolution_state.square_x
328
- <= tile_x
329
- < evolution_state.square_x + evolution_state.max_square_size
330
- ):
331
- result[0:square_line_width, :] = square_color
332
- if (
333
- (x + 1) % factor == 0
334
- and (x + 1) // factor
335
- == evolution_state.square_x + evolution_state.max_square_size
336
- and evolution_state.square_y
337
- <= tile_y
338
- < evolution_state.square_y + evolution_state.max_square_size
339
- ):
340
- result[:, -square_line_width:] = square_color
341
- if (
342
- (y + 1) % factor == 0
343
- and (y + 1) // factor
344
- == evolution_state.square_y + evolution_state.max_square_size
345
- and evolution_state.square_x
346
- <= tile_x
347
- < evolution_state.square_x + evolution_state.max_square_size
348
- ):
349
- result[-square_line_width:, :] = square_color
323
+ result[:, 0:square_line_width] = square_color
324
+ if (
325
+ y % factor == 0
326
+ and tile_y == evolution_state.square_y
327
+ and evolution_state.square_x
328
+ <= tile_x
329
+ < evolution_state.square_x + evolution_state.max_square_size
330
+ ):
331
+ result[0:square_line_width, :] = square_color
332
+ if (
333
+ (x + 1) % factor == 0
334
+ and (x + 1) // factor
335
+ == evolution_state.square_x + evolution_state.max_square_size
336
+ and evolution_state.square_y
337
+ <= tile_y
338
+ < evolution_state.square_y + evolution_state.max_square_size
339
+ ):
340
+ result[:, -square_line_width:] = square_color
341
+ if (
342
+ (y + 1) % factor == 0
343
+ and (y + 1) // factor
344
+ == evolution_state.square_y + evolution_state.max_square_size
345
+ and evolution_state.square_x
346
+ <= tile_x
347
+ < evolution_state.square_x + evolution_state.max_square_size
348
+ ):
349
+ result[-square_line_width:, :] = square_color
350
350
  else:
351
351
  result = grayscale
352
352
  factor = 2 ** (zoom - z)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geo-activity-playground
3
- Version: 1.4.0
3
+ Version: 1.4.1
4
4
  Summary: Analysis of geo data activities like rides, runs or hikes.
5
5
  License: MIT
6
6
  Author: Martin Ueding
@@ -71,7 +71,7 @@ geo_activity_playground/webui/blueprints/calendar_blueprint.py,sha256=SmOu5AfNNo
71
71
  geo_activity_playground/webui/blueprints/eddington_blueprints.py,sha256=Ya5GJxfVESwmRlgMTYe9g75g8JHHTAAvYFmSD-3Uz4Q,8987
72
72
  geo_activity_playground/webui/blueprints/entry_views.py,sha256=SDCzpUSb1FAb84tM0SnmrZQvtaTlO-Rqdj94hyIMDSc,2936
73
73
  geo_activity_playground/webui/blueprints/equipment_blueprint.py,sha256=8L_7NZGErvu4jyigi2gg7HN_gegZRdsSFahUH7Dz6Lw,5727
74
- geo_activity_playground/webui/blueprints/explorer_blueprint.py,sha256=l-rMutpEcde1PaVETQ2gxtY6hgXZz6MHvb1eStxZTsQ,21497
74
+ geo_activity_playground/webui/blueprints/explorer_blueprint.py,sha256=bqRG11EHJ67ZVrDVu9KhriCFihw9910fC6PuPmhFZDc,21352
75
75
  geo_activity_playground/webui/blueprints/export_blueprint.py,sha256=C9yFH5gEJs2YtWE-EhcGDEyGwwaLgC1umybgIRi6duE,1036
76
76
  geo_activity_playground/webui/blueprints/hall_of_fame_blueprint.py,sha256=bOJ6ejDS6rw8-GEGo1Lihn5DS6j0t9e8CbcbRi44Pts,3168
77
77
  geo_activity_playground/webui/blueprints/heatmap_blueprint.py,sha256=5LlYKMeOMIE7c3xGRZ52ld4Jxtdc3GNcb6lvt3v7NVA,8435
@@ -174,8 +174,8 @@ geo_activity_playground/webui/templates/summary/vega-chart.html.j2,sha256=mw8Hti
174
174
  geo_activity_playground/webui/templates/time_zone_fixer/index.html.j2,sha256=s9r6BJMXmd7kLSyjkvH4xLi6e01S5bpGRcMgMMJyCAE,1760
175
175
  geo_activity_playground/webui/templates/upload/index.html.j2,sha256=I1Ix8tDS3YBdi-HdaNfjkzYXVVCjfUTe5PFTnap1ydc,775
176
176
  geo_activity_playground/webui/templates/upload/reload.html.j2,sha256=YZWX5eDeNyqKJdQAywDBcU8DZBm22rRBbZqFjrFrCvQ,556
177
- geo_activity_playground-1.4.0.dist-info/LICENSE,sha256=4RpAwKO8bPkfXH2lnpeUW0eLkNWglyG4lbrLDU_MOwY,1070
178
- geo_activity_playground-1.4.0.dist-info/METADATA,sha256=emNPjWxE-mMtKn0osd1sWZ7QeK_kFYavMpMtftmjhGs,1890
179
- geo_activity_playground-1.4.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
180
- geo_activity_playground-1.4.0.dist-info/entry_points.txt,sha256=pbNlLI6IIZIp7nPYCfAtiSiz2oxJSCl7DODD6SPkLKk,81
181
- geo_activity_playground-1.4.0.dist-info/RECORD,,
177
+ geo_activity_playground-1.4.1.dist-info/LICENSE,sha256=4RpAwKO8bPkfXH2lnpeUW0eLkNWglyG4lbrLDU_MOwY,1070
178
+ geo_activity_playground-1.4.1.dist-info/METADATA,sha256=TlfR52Fp08hHZ5jDPHtHeQQ7dqcsqiUbI6aU1a94nv0,1890
179
+ geo_activity_playground-1.4.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
180
+ geo_activity_playground-1.4.1.dist-info/entry_points.txt,sha256=pbNlLI6IIZIp7nPYCfAtiSiz2oxJSCl7DODD6SPkLKk,81
181
+ geo_activity_playground-1.4.1.dist-info/RECORD,,