Skip to content

Commit

Permalink
cancel objects info in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
fiksupojka committed Feb 20, 2024
1 parent 27ebf16 commit 671fe04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pybgcode/pybgcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ def read_metadata(gcodefile: FILEWrapper, type: str = 'printer'):
"support_material", "ironing", "quiet_percent_present",
"quiet_left_present", "quiet_change_in_present", "normal_percent_present",
"normal_left_present", "normal_change_in_present", "layer_info_present",
"max_layer_z"]
"max_layer_z", "objects_info"]


def filter_connect_metadata(output: dict) -> dict:
all_metadata = {**output['print'], **output['printer']}
connect_metadata = {
key: item for key, item in all_metadata.items()
if key in connect_metadata_keys}
return {'thumbnails': output['thumbnails'], 'metadata': connect_metadata}
return {'thumbnails': output['thumbnails'], 'metadata': all_metadata}


def read_connect_metadata(wrapper: FILEWrapper):
Expand Down

0 comments on commit 671fe04

Please sign in to comment.