diff --git a/unilabos/registry/devices/bioyond_cell.yaml b/unilabos/registry/devices/bioyond_cell.yaml index bcfdfff9..81d78b9e 100644 --- a/unilabos/registry/devices/bioyond_cell.yaml +++ b/unilabos/registry/devices/bioyond_cell.yaml @@ -1114,7 +1114,7 @@ bioyond_cell: config_info: [] description: '' handles: [] - icon: '' + icon: benyao2.webp init_param_schema: config: properties: diff --git a/unilabos/registry/devices/coin_cell_workstation.yaml b/unilabos/registry/devices/coin_cell_workstation.yaml index 4a39afa3..b3eb7b4c 100644 --- a/unilabos/registry/devices/coin_cell_workstation.yaml +++ b/unilabos/registry/devices/coin_cell_workstation.yaml @@ -502,7 +502,7 @@ coincellassemblyworkstation_device: config_info: [] description: '' handles: [] - icon: coin_cell_assembly_picture.webp + icon: koudian.webp init_param_schema: config: properties: diff --git a/unilabos/resources/battery/__init__.py b/unilabos/resources/battery/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/unilabos/resources/battery/magazine.py b/unilabos/resources/battery/magazine.py index f8d24447..d3ffcd82 100644 --- a/unilabos/resources/battery/magazine.py +++ b/unilabos/resources/battery/magazine.py @@ -52,6 +52,15 @@ class Magazine(ResourceStack): def size_z(self) -> float: return self.get_size_z() + def serialize(self) -> dict: + return { + **super().serialize(), + "size_x": self.size_x, + "size_y": self.size_y, + "size_z": self.size_z, + "max_sheets": self.max_sheets, + } + class MagazineHolder(ItemizedResource): """子弹夹类 - 有多个洞位,每个洞位放多个极片"""