def deserialize(self, msg): self.__layers.clear() for i in msg.layers: self.__layers.append(Layer.deserialize(self.__project, i)) self.__via_pairs.clear() for i in msg.viapairs: self.__via_pairs.append(ViaPair.deserialize(self.__project, i))
def deserialize(self, msg: ser.Stackup) -> None: self.__layers.clear() for i in msg.layers: self.__layers.append(Layer.deserialize(self.__project, i)) self.__via_pairs.clear() for i in msg.viapairs: self.__via_pairs.append(ViaPair.deserialize(self.__project, i)) self.__renumber_layers()