valetudo-map-parser 0.1.9b1__py3-none-any.whl → 0.1.9b3__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.
@@ -70,7 +70,7 @@ class AutoCrop:
70
70
  )
71
71
  return trimmed_width, trimmed_height
72
72
 
73
- async def _async_auto_crop_data(self): #, tdata=None
73
+ async def _async_auto_crop_data(self): # , tdata=None
74
74
  """Load the auto crop data from the Camera config."""
75
75
  # todo: implement this method but from config data
76
76
  # if not self.imh.auto_crop:
@@ -257,7 +257,7 @@ class RRMapParser:
257
257
 
258
258
  @callback
259
259
  def parse_rrm_data(
260
- self, map_buf: bytes, pixels: bool = False
260
+ self, map_buf: bytes, pixels: bool = False
261
261
  ) -> Optional[Dict[str, Any]]:
262
262
  """Parse the complete map data."""
263
263
  if not self.parse(map_buf).get("map_index"):
@@ -350,7 +350,7 @@ class RRMapParser:
350
350
 
351
351
  @staticmethod
352
352
  def _parse_virtual_walls_data(
353
- parsed_map_data: Dict[str, Any], blocks: Dict[int, Any]
353
+ parsed_map_data: Dict[str, Any], blocks: Dict[int, Any]
354
354
  ):
355
355
  """Parse virtual walls data."""
356
356
  if RRMapParser.Types.VIRTUAL_WALLS.value in blocks:
@@ -207,9 +207,11 @@ 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(
211
- m_json
212
- )
210
+ (
211
+ _,
212
+ robot_position,
213
+ robot_position_angle,
214
+ ) = await self.imd.async_get_robot_position(m_json)
213
215
  if self.frame_number == 0:
214
216
  room_id, img_np_array = await self.imd.async_draw_base_layer(
215
217
  m_json,
@@ -247,7 +249,9 @@ class ReImageHandler:
247
249
  img_np_array = await self.imd.async_draw_path(
248
250
  img_np_array, m_json, colors["move"]
249
251
  )
250
- await self.imd.async_draw_go_to_flag(img_np_array, m_json, colors["go_to"])
252
+ img_np_array = await self.imd.async_draw_go_to_flag(
253
+ img_np_array, m_json, colors["go_to"]
254
+ )
251
255
  img_np_array = await self.imd.async_draw_robot_on_map(
252
256
  img_np_array, robot_position, robot_position_angle, colors["robot"]
253
257
  )
@@ -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.9b3
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
@@ -1,9 +1,9 @@
1
1
  valetudo_map_parser/__init__.py,sha256=0pbU11Jz-SwqF-FkrZM4Kp5-LOWNSc_nIE91OE4iHm4,809
2
2
  valetudo_map_parser/config/__init__.py,sha256=DQ9plV3ZF_K25Dp5ZQHPDoG-40dQoJNdNi-dfNeR3Zc,48
3
- valetudo_map_parser/config/auto_crop.py,sha256=W8caSQf8Pwu3tCGgJJrF3dlEisM5pb2m0lg14PuAnV8,11016
3
+ valetudo_map_parser/config/auto_crop.py,sha256=z97Yqoe96ZiWmgaKTFv7sODb9UD6doRduTeQXMYWXVA,11018
4
4
  valetudo_map_parser/config/colors.py,sha256=HlgROKagpV7FP9LTU1IvhTKTYjnlBw1ZDMKHVJSct8M,6514
5
5
  valetudo_map_parser/config/drawable.py,sha256=8Fp4yqyFbsGvNyCEynYCTpiohRZk_plUSSOyHpECvj8,20356
6
- valetudo_map_parser/config/rand25_parser.py,sha256=yQz6RFS7w962MowYLoUZYgZ0tL_S6uutScnDR10V5ng,16265
6
+ valetudo_map_parser/config/rand25_parser.py,sha256=DUXtLb6-Vlepdu8NINXSsABZn3XvzmJxetWTC0428es,16257
7
7
  valetudo_map_parser/config/shared.py,sha256=8xYBUfKY-tiPhXaT5ttIasnCWL3_RLawIZeTValQC64,9462
8
8
  valetudo_map_parser/config/types.py,sha256=bVSEDE0ihrc01jG4fZ1_hUVtoj6hdkbqShytZ6wJwJY,16163
9
9
  valetudo_map_parser/hypfer_draw.py,sha256=R8JVrqPPavhj8exCDJKk1QsXgsB12cjy4AIgFffyQec,15773
@@ -11,10 +11,10 @@ valetudo_map_parser/hypfer_handler.py,sha256=CTFF9O56_BBNWZadhvvS-e6U880nXtDdNtY
11
11
  valetudo_map_parser/images_utils.py,sha256=0Baq48oncJy6Z_HxaRhMuknt3TMhBxl92BGDGhw-HYo,15262
12
12
  valetudo_map_parser/map_data.py,sha256=Sq2pYKlybuJyhbVwyEz8WhT1MZ9EMCYJL0OoKt2YZQo,19468
13
13
  valetudo_map_parser/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- valetudo_map_parser/rand25_handler.py,sha256=gQZGWJbjbW3fldxl53JzeOlkx7jdxWpsVn-AhJ6t38I,19489
14
+ valetudo_map_parser/rand25_handler.py,sha256=bXQnma-S7E9ktUMl_vzQSYazQ5aLOjSG74VCQ-nyhCg,19553
15
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,,
16
+ valetudo_map_parser-0.1.9b3.dist-info/LICENSE,sha256=Lh-qBbuRV0-jiCIBhfV7NgdwFxQFOXH3BKOzK865hRs,10480
17
+ valetudo_map_parser-0.1.9b3.dist-info/METADATA,sha256=oP3SyzAz7uLRZRqdBpG0AoZ2PadOEzIYT2vms31VM-k,1028
18
+ valetudo_map_parser-0.1.9b3.dist-info/NOTICE.txt,sha256=5lTOuWiU9aiEnJ2go8sc7lTJ7ntMBx0g0GFnNrswCY4,2533
19
+ valetudo_map_parser-0.1.9b3.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
20
+ valetudo_map_parser-0.1.9b3.dist-info/RECORD,,