cleanup: remove .gds.br support

We now use .oas instead
This commit is contained in:
Uri Shaked
2025-10-02 08:11:37 +03:00
parent 131f64cecb
commit 29e6a05555
3 changed files with 1 additions and 29 deletions
-16
View File
@@ -5,7 +5,6 @@ import os
import shutil
from typing import List, Set
import brotli # type: ignore
import git
import klayout.db as pya
import yaml
@@ -22,15 +21,6 @@ def copy_print(src: str, dest: str):
shutil.copy2(src, dest)
def copy_print_decompress(src: str, dest: str):
os.makedirs(os.path.dirname(dest), exist_ok=True)
with open(src, "rb") as f:
data = f.read()
with open(dest, "wb") as f:
f.write(brotli.decompress(data))
logging.info(f" -> {dest} (decompressed)")
def copy_print_convert(src: str, dest: str):
os.makedirs(os.path.dirname(dest), exist_ok=True)
layout = pya.Layout()
@@ -231,12 +221,6 @@ class ShuttleConfig:
def copy_macros(self):
logging.info("copying macros to tt_top:")
copy_print_glob("projects/*/*.gds", "tt-multiplexer/ol2/tt_top/gds")
# Find all the ".gds.br" files, decompress them and copy them to the destination
for file in glob.glob("projects/*/*.gds.br"):
decompressed_name = os.path.splitext(os.path.basename(file))[0]
copy_print_decompress(
file, os.path.join("tt-multiplexer/ol2/tt_top/gds", decompressed_name)
)
# Convert .oas files to .gds
for file in glob.glob("projects/*/*.oas"):
converted_name = os.path.splitext(os.path.basename(file))[0] + ".gds"