hohlraum / gdsCAD

A simple but powerful Python package for creating photolithography masks in the GDSII format.
GNU General Public License v3.0
88 stars 52 forks source link

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

Open FaustinCarter opened 6 years ago

FaustinCarter commented 6 years ago

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: