valetudo-map-parser 0.1.9b1__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 != []:
@@ -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.9b1
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
14
  valetudo_map_parser/rand25_handler.py,sha256=gQZGWJbjbW3fldxl53JzeOlkx7jdxWpsVn-AhJ6t38I,19489
15
- valetudo_map_parser/reimg_draw.py,sha256=AAMtHtbZQvF4mz89ADCybTT39ejvD-jJ7z2LXKXB1hE,13328
16
- valetudo_map_parser-0.1.9b1.dist-info/LICENSE,sha256=Lh-qBbuRV0-jiCIBhfV7NgdwFxQFOXH3BKOzK865hRs,10480
17
- valetudo_map_parser-0.1.9b1.dist-info/METADATA,sha256=_oQcq8rFfGHTwvNw5en1fZG90C-j9pvbTni9n2pBfD8,1028
18
- valetudo_map_parser-0.1.9b1.dist-info/NOTICE.txt,sha256=5lTOuWiU9aiEnJ2go8sc7lTJ7ntMBx0g0GFnNrswCY4,2533
19
- valetudo_map_parser-0.1.9b1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
20
- valetudo_map_parser-0.1.9b1.dist-info/RECORD,,
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,,