Compare commits
No commits in common. "2512c83749ee265fa3e71801af1cc831fc6cb95b" and "14f795e592c6c2249bde5b931418f705191247e3" have entirely different histories.
2512c83749
...
14f795e592
3 changed files with 8 additions and 3 deletions
|
|
@ -77,7 +77,7 @@ def parse_datetime(data: bytes) -> list[datetime]:
|
|||
year, *date_parts = parse_int2(data[ii:ii + 12])
|
||||
try:
|
||||
dt = datetime(year + 1900, *date_parts)
|
||||
except ValueError:
|
||||
except ValueError as err:
|
||||
dt = datetime(1900, 1, 1, 0, 0, 0)
|
||||
logger.info(f'Invalid date {[year] + date_parts}, setting {dt} instead')
|
||||
dts.append(dt)
|
||||
|
|
|
|||
|
|
@ -319,9 +319,9 @@ class Path(Element):
|
|||
if self.path_type == 4:
|
||||
bgn_ext, end_ext = self.extension
|
||||
if bgn_ext != 0:
|
||||
b += BGNEXTN.write(stream, int(bgn_ext))
|
||||
b += BGNEXTN.write(stream, bgn_ext)
|
||||
if end_ext != 0:
|
||||
b += ENDEXTN.write(stream, int(end_ext))
|
||||
b += ENDEXTN.write(stream, end_ext)
|
||||
b += XY.write(stream, self.xy)
|
||||
b += write_properties(stream, self.properties)
|
||||
b += ENDEL.write(stream, None)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "klamath"
|
||||
description = "GDSII format reader/writer"
|
||||
|
|
@ -80,6 +84,7 @@ lint.ignore = [
|
|||
"ANN002", # *args
|
||||
"ANN003", # **kwargs
|
||||
"ANN401", # Any
|
||||
"ANN101", # self: Self
|
||||
"SIM108", # single-line if / else assignment
|
||||
"RET504", # x=y+z; return x
|
||||
"PIE790", # unnecessary pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue