Commit graph

55 commits

Author SHA1 Message Date
jan
56a99c8e58 [encode_real8] improve handling of tiny floats 2026-03-09 01:52:03 -07:00
jan
e72b792f6f [scan_hierarchy] make sure counts get reset at ref boundaries 2026-03-09 01:45:06 -07:00
jan
286f9e1949 [read_properties] skip unrecognized tags 2026-03-09 01:41:57 -07:00
jan
9e6f5a3365 [decode_real8] avoid passing signature to keep mypy happy 2026-03-09 01:02:06 -07:00
jan
a67f9036b2 [tests] add some more tests 2026-03-09 01:01:07 -07:00
jan
966e350f66 [records] early return if we got an int 2026-03-09 01:00:48 -07:00
jan
9cfcad9acd [records] fix some expected sizes 2026-03-09 01:00:30 -07:00
jan
49a7ba2209 [tests] add a bunch of tests 2026-03-09 00:15:52 -07:00
jan
cf4d7f70d4 [records] fix record id for HARDFENCE 2026-03-08 21:41:24 -07:00
jan
2512c83749 misc linter cleanup 2026-03-08 20:06:45 -07:00
jan
5cd20f9751 [Path] fix handling of non-int extensions (cast) 2026-03-08 20:06:30 -07:00
jan
74b9672b4a bump version to v1.5 2025-10-12 23:37:53 -07:00
jan
0ac4c3b275 fix path extensions not getting written correctly 2025-10-12 23:37:53 -07:00
ae9c2d7b5f add type annotation 2025-04-21 19:39:23 -07:00
428e396b9b Loosen type requirements / guarantees for properties
We will still return a dict, but only require a mapping when writing
2025-04-21 19:39:23 -07:00
jan
4ffb87d361 Include repr() of data in error msg 2024-12-20 19:52:16 -08:00
a50d53b508 bump version to v1.4
Main change is numpy 2.0 compatibility
2024-07-29 20:53:45 -07:00
7d6cea1c4a numpy.array(..., copy=False) -> numpy.asarray(...)
for numpy 2.0 compatibility
2024-07-29 18:35:55 -07:00
8061d6cd37 note intentionally non-abstract method 2024-07-29 18:35:55 -07:00
cae970e65c simplify comparisons 2024-07-29 18:35:55 -07:00
2ea9d32984 use KlamathError everywhere 2024-07-29 18:35:55 -07:00
15af9078f0 modernize type annotations and improve handling of int scalars 2024-07-29 18:35:55 -07:00
f12a1c6421 ignore a lint 2024-07-29 18:35:55 -07:00
438cde513e whitespace 2024-07-29 18:35:55 -07:00
59c94f7c17 improve type annotations 2024-07-29 18:35:55 -07:00
e7e42a2ef8 Allow NDArray inputs to pack_* and avoid unnecesary copies 2024-07-29 18:35:55 -07:00
dc58159cdf use redundant imports for re-exported names 2024-07-29 18:35:55 -07:00
jan
6a0019010f reduce date normalization log priority from 'warning' to 'info' 2024-04-11 18:43:33 -07:00
jan
46b3349935 Allow reading files with invalid dates
Notably, KLayout writes invalid dates when told to not write the date
2024-04-06 12:22:05 -07:00
jan
97527a5948 specify signature instead of using astype 2024-04-06 12:22:05 -07:00
jan
9d14bf27c6 Update type annotations and some formatting 2023-04-14 11:57:31 -07:00
4d362f8e09 do some linting with flake8 2023-01-26 12:40:54 -08:00
0bbc8f8e08 Loosen constraints from BinaryIO to IO[bytes] 2023-01-26 12:32:19 -08:00
e90e44bd15 bump version to v1.3 2022-08-18 23:07:23 -07:00
38fc306644 Move to hatch-based build 2022-08-18 23:06:41 -07:00
a8ecd5f0ef Bump version to v1.2 2022-02-23 15:41:42 -08:00
3569096e89 Widen type hints to placate mypy
Apparently there's no way to specify a Sequence with fixed length, so
Union it is!
2022-02-23 15:41:42 -08:00
6a585294e6 Tests: Empty string should no longer cause an error during parsing 2022-02-23 15:41:42 -08:00
b5a53bac91 fix docstring 2022-02-23 15:41:42 -08:00
e54d041d85 ldexp requires i64 (not u64) exponent in numpy 1.21 2022-02-23 15:41:42 -08:00
jan
e9266d344f bump to v1.1 2021-04-12 13:59:12 -07:00
jan
6b0d1cd842 fix reading some elements 2021-04-12 13:58:52 -07:00
jan
4022622de5 bump to v1.0 2021-03-26 10:14:14 -07:00
jan
38c22f081b fixup real coversion for large exponents
also implement subnormals, though they don't have real8 equivalents so
it's wasted effort
2021-03-26 10:14:02 -07:00
jan
329a86c94f remove newlines from version string 2021-03-26 08:24:37 -07:00
jan
fbe5cee7f5 Add library.scan_hierarchy to quickly gather layout stats 2021-03-26 08:24:13 -07:00
jan
34a334f6f3 allow zero-length ascii strings
klayout sometimes writes these
2021-03-26 08:22:58 -07:00
288952f961 Use VERSION.py instead of plain VERSION
reduces reliance on package_data
2020-11-03 01:32:54 -08:00
e684669f8e Fix readme issues and bump version to v0.3 2020-10-10 19:23:09 -07:00
429ce99ed1 bump version to v0.2 2020-10-10 19:08:02 -07:00