Function show
from raimad.show
def show(compo: 'rai.typing.CompoLike', ignore_running: bool = False) -> None
Export `compo` and open it in a CIF viewer.
Click to show code
def show(compo: 'rai.typing.CompoLike', ignore_running: bool = False) -> None:
"""Export `compo` and open it in a CIF viewer."""
file = Path(tempfile.gettempdir()) / "RAIMAD-SHOW.cif"
rai.export_cif(compo, file)
print(f"Saved to {file}")
if not ignore_running and is_klayout_running():
print("Klayout already running.")
return
args = get_cifview_args(str(file))
print(f"Running {args}...")
subprocess.Popen(args)