valetudo-map-parser 0.1.9b0__py3-none-any.whl → 0.1.9b2__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.
@@ -8,6 +8,7 @@ Version: v0.1.6
8
8
 
9
9
  from __future__ import annotations
10
10
 
11
+ from logging import getLogger
11
12
  import numpy as np
12
13
 
13
14
  from .config.types import (
@@ -17,6 +18,7 @@ from .config.types import (
17
18
  NumpyArray,
18
19
  )
19
20
 
21
+ _LOGGER = getLogger(__name__)
20
22
 
21
23
  class ImageData:
22
24
  """Class to handle the image data."""
@@ -328,6 +330,7 @@ class RandImageData:
328
330
  try:
329
331
  path_data = json_data.get("goto_target", {})
330
332
  except KeyError:
333
+ _LOGGER.debug("No goto target data found in the json.")
331
334
  return None
332
335
 
333
336
  if path_data and path_data != []:
@@ -207,7 +207,7 @@ class ReImageHandler:
207
207
  async def _setup_robot_and_image(
208
208
  self, m_json, size_x, size_y, colors, destinations
209
209
  ):
210
- robot_position, robot_position_angle = await self.imd.async_get_robot_position(
210
+ _, robot_position, robot_position_angle = await self.imd.async_get_robot_position(
211
211
  m_json
212
212
  )
213
213
  if self.frame_number == 0:
@@ -43,6 +43,7 @@ class ImageDraw:
43
43
  color_go_to,
44
44
  )
45
45
  predicted_path = self.data.get_rrm_goto_predicted_path(m_json)
46
+ _LOGGER.debug("Predicted path: %s", predicted_path)
46
47
  if predicted_path:
47
48
  np_array = await self.draw.lines(
48
49
  np_array, predicted_path, 3, self.color_grey
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: valetudo-map-parser
3
- Version: 0.1.9b0
3
+ Version: 0.1.9b2
4
4
  Summary: A Python library to parse Valetudo map data returning a PIL Image object.
5
5
  License: Apache-2.0
6
6
  Author: Sandro Cantarella
@@ -9,12 +9,12 @@ valetudo_map_parser/config/types.py,sha256=bVSEDE0ihrc01jG4fZ1_hUVtoj6hdkbqShytZ
9
9
  valetudo_map_parser/hypfer_draw.py,sha256=R8JVrqPPavhj8exCDJKk1QsXgsB12cjy4AIgFffyQec,15773
10
10
  valetudo_map_parser/hypfer_handler.py,sha256=CTFF9O56_BBNWZadhvvS-e6U880nXtDdNtYgMcvxXXA,18453
11
11
  valetudo_map_parser/images_utils.py,sha256=0Baq48oncJy6Z_HxaRhMuknt3TMhBxl92BGDGhw-HYo,15262
12
- valetudo_map_parser/map_data.py,sha256=Sq2pYKlybuJyhbVwyEz8WhT1MZ9EMCYJL0OoKt2YZQo,19468
12
+ valetudo_map_parser/map_data.py,sha256=26lolgfj_XjguZgE8MwO7GMz4xt8SWzJsTiA1RbOq98,19596
13
13
  valetudo_map_parser/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- valetudo_map_parser/rand25_handler.py,sha256=JS69d-_IEKLKS4ieWk6vbPGxw8oNadIwEBpQPsTz3ow,19486
15
- valetudo_map_parser/reimg_draw.py,sha256=AAMtHtbZQvF4mz89ADCybTT39ejvD-jJ7z2LXKXB1hE,13328
16
- valetudo_map_parser-0.1.9b0.dist-info/LICENSE,sha256=Lh-qBbuRV0-jiCIBhfV7NgdwFxQFOXH3BKOzK865hRs,10480
17
- valetudo_map_parser-0.1.9b0.dist-info/METADATA,sha256=pxwcvHbrC_A0OLAWdGlLQ-zbsgBok4Uy3KeKo09M78Y,1028
18
- valetudo_map_parser-0.1.9b0.dist-info/NOTICE.txt,sha256=5lTOuWiU9aiEnJ2go8sc7lTJ7ntMBx0g0GFnNrswCY4,2533
19
- valetudo_map_parser-0.1.9b0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
20
- valetudo_map_parser-0.1.9b0.dist-info/RECORD,,
14
+ valetudo_map_parser/rand25_handler.py,sha256=gQZGWJbjbW3fldxl53JzeOlkx7jdxWpsVn-AhJ6t38I,19489
15
+ valetudo_map_parser/reimg_draw.py,sha256=icyjy8To6jNIFzUCg6xA7hRliLZceFNeUjygqAJFCeU,13396
16
+ valetudo_map_parser-0.1.9b2.dist-info/LICENSE,sha256=Lh-qBbuRV0-jiCIBhfV7NgdwFxQFOXH3BKOzK865hRs,10480
17
+ valetudo_map_parser-0.1.9b2.dist-info/METADATA,sha256=9zy80BX81lh4y-Lc6XFAVt7KZTqq8Kk0NEzBFXouUlg,1028
18
+ valetudo_map_parser-0.1.9b2.dist-info/NOTICE.txt,sha256=5lTOuWiU9aiEnJ2go8sc7lTJ7ntMBx0g0GFnNrswCY4,2533
19
+ valetudo_map_parser-0.1.9b2.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
20
+ valetudo_map_parser-0.1.9b2.dist-info/RECORD,,