Пример #1
0
    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))
Пример #2
0
    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))
Пример #3
0
    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()