Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
klayout cannot open CIF files exported by LASI tlc2cif #28
LASI generates CIF files which fail to be identified as CIF by klayout.
LASI has a tool, tlc2cif, that outputs files like the one attached (lasi.cif.txt -- note, I had to add the .txt suffix so github would upload it, though klayout is perfectly happy with the .txt extension using klayout -e lasi.cif.txt)
The CIF file unfortunately contains
allows klayout to properly identify, and then parse and open the file, but as far as I can tell, there's nothing illegal about using # as a separator as LASI does. And the only problem is that klayout doesn't recognize the file as a CIF file because it fails to find the "DS #" signature.
added a commit
Nov 28, 2017
Thanks for the issue. The solution goes a bit beyond the pull request - basically there were more issues. Now file format detection should be closer to the full specification. Still the requirement is that the first command is either "L" or "DS".
I have also included your file as a test case.