From ca83aec1e997685ab059d8f57d989bc99c2f5f17 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Tue, 28 May 2024 06:15:19 -0700 Subject: [PATCH] Change a few dictionary keys --- parse.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parse.py b/parse.py index 3ba860a..cd583b0 100644 --- a/parse.py +++ b/parse.py @@ -92,10 +92,10 @@ class Tag(): "uid": bytes_to_hex(self.blocks[0][0:4]), "filament_type": bytes_to_string(self.blocks[2]), "detailed_filament_type": bytes_to_string(self.blocks[4]), - "color": "#" + bytes_to_hex(self.blocks[5][0:4]), - "weight": Unit(bytes_to_int(self.blocks[5][4:6]), "g"), - "length": Unit(bytes_to_int(self.blocks[14][4:6]), "m"), - "diameter": Unit(bytes_to_float(self.blocks[5][8:12]), "mm"), + "filament_color": "#" + bytes_to_hex(self.blocks[5][0:4]), + "spool_weight": Unit(bytes_to_int(self.blocks[5][4:6]), "g"), + "filament_length": Unit(bytes_to_int(self.blocks[14][4:6]), "m"), + "filament_diameter": Unit(bytes_to_float(self.blocks[5][8:12]), "mm"), "spool_width": Unit(bytes_to_int(self.blocks[10][4:6]) / 100, "mm"), "material_id": bytes_to_string(self.blocks[1][8:16]), "variant_id": bytes_to_string(self.blocks[1][0:8]),