Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow for opening of files with corrupt create and/or modify dates. #55

Open
wants to merge 1 commit into
base: 2and3
Choose a base branch
from

Conversation

FaustinCarter
Copy link

Older versions of Layout Editor (i.e. the last free version before a license was required) inject a bogus date and time into the BGNLIB record. This can't be parsed by datetime and so it fails and crashes. This is a workaround to allow for non-parseable entries in that record. If it is unable to parse, it replaces the entry with datetime.datetime.today().

What other programs do with BGNLIB data:

  • KLayout offers the option to not write anything to those fields, or to update them at write time. It doesn't attempt to parse them in any way though on read.
  • Layout Editor circa 2008/2009 does something strange and stupid on write, and ignores on read.
  • gdspy reads in whatever is there, but doesn't try anything fancy with it (i.e. parsing).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant