Commit Graph

101 Commits (master)
 

Author SHA1 Message Date
Jan Petykiewicz 7efc5a39d4 bump version to v0.12 2 years ago
Jan Petykiewicz 9c798b9906 move to hatch-based build 2 years ago
Jan Petykiewicz 5a42081f6a write "long zero" for END record padding padding 3 years ago
Jan Petykiewicz c0e7d11ea2 remove old note 3 years ago
Jan Petykiewicz 90ea0c2195 fix read_point_list when using numpy 3 years ago
Jan Petykiewicz f3be3deadb Add tests 3 years ago
Jan Petykiewicz 9c5b902a33 ignore missing numpy typing info 3 years ago
Jan Petykiewicz fd9f16d705 add implicit_closed arg to read_point_list()
The process for closing a point list depends on the delta type, so it
needs to happen at read time. However, paths aren't implicity closed, so
it needs to be an input option.
3 years ago
Jan Petykiewicz 48d52f56c7 cast is_vertical to bool 3 years ago
Jan Petykiewicz d73e13d13b Allow nonzero value count when using modal (but don't read any values) 3 years ago
Jan Petykiewicz a64f2726d0 Don't attempt to decode magic bytes
Since they're wrong, they're likely not decodable anyways.
3 years ago
Jan Petykiewicz 25fe2067cd Fix error check to not include properties 3 years ago
Jan Petykiewicz f8a65968cb use new email 3 years ago
Jan Petykiewicz 748bb497d1 strip newlines from version string 3 years ago
jan 08ab2b41d5 bump version to v0.11 3 years ago
jan ba6b04d82d fix version import 3 years ago
Jan Petykiewicz f9b8bf823b bump version to v0.10 4 years ago
Jan Petykiewicz b996f5f27e use VERSION.py instead of plain VERSION file
reduces reliance on package_data
4 years ago
Jan Petykiewicz 60f879a1ad style fixes (per flake8) 4 years ago
Jan Petykiewicz 4a878aa7bf fix type definition for modals 4 years ago
Jan Petykiewicz c1b79485a7 Bump version to v0.9 4 years ago
Jan Petykiewicz 3ca999fa2e documentation updates 4 years ago
Jan Petykiewicz 3627b63658 Make records store their associated Property records.
Previously, `Property` records were (incorrectly) just associated with
the library or cell.

This requires a change to how `CellName`s are handled by `OasisLayout`,
since they can have associated properties. They now have their own
non-record object (like `XName`s did before) which holds the properties.

There is also now a `FileModals.property_target` attribute which tracks
which record new `Property` rescords should be associated with.
4 years ago
Jan Petykiewicz 167b16e1c9 fix writing of property values 4 years ago
Jan Petykiewicz 2c2013a0fc move typing imports to top of file 4 years ago
Jan Petykiewicz a80ac6199a Record type 17 (Placement) should not allow modal angle or magnification 4 years ago
jan 97f2bb1238 add `docs` to gitignore 4 years ago
jan bc15a66ecc remove extra assignments to *_count and *_vector, and adjust validity checks 4 years ago
jan 5ac774c386 drop OS tags from package 4 years ago
Jan Petykiewicz 4b7b6b82c1 bump version to v0.8 4 years ago
Jan Petykiewicz 94555c1b6e Update modal coordinates even if we are in relative mode 4 years ago
Jan Petykiewicz 86c1e4cd3b bump version to v0.7 4 years ago
Jan Petykiewicz fdf5e9f598 enable type checking for downstream 4 years ago
Jan Petykiewicz fab80c8517 cosmetic change to code 4 years ago
Jan Petykiewicz 492d6416db Docstring updates: CTrapezoid info, Polygon+Path point_list description improvement, and better description of where x and y point to 4 years ago
Jan Petykiewicz aaef122178 fixup array equality checking in the case where _USE_NUMPY is false but we somehow still get an ndarray
mostly happens during testing
4 years ago
Jan Petykiewicz 55638fcde5 fix placement rotation (float modulo int was always returning 0??) 4 years ago
Jan Petykiewicz 99283aaaf0 enable passing in str where an AString or NString is needed. 4 years ago
Jan Petykiewicz 705926d443 Add UnfilledModalError, records.verify_modal(), and .get_*() methods.
The .get_*() methods are used to verify that we aren't reading from a
pattern with un-filled modals.

The GeometryMixin class was also added here and provides some additional
convenience methods: get_xy() to get an (x,y) tuple and
get_layer_tuple() to get a (layer, datatype) tuple.
4 years ago
Jan Petykiewicz e4a62a0f32 fix write_interval for bounded intervals 4 years ago
Jan Petykiewicz 715fe7ea24 fix non-numpy write_point_list 4 years ago
Jan Petykiewicz d25f3f1598 enable str() casts on NString and AString 4 years ago
Jan Petykiewicz e909aa958d fix equality for things which may or may not be numpy arrays 4 years ago
Jan Petykiewicz 411012079d bifurctae read_bool_byte and write_bool_byte into _np_* and _py_* variants 4 years ago
Jan Petykiewicz f15499030d only write the first byte -- probably no different but clearer 4 years ago
Jan Petykiewicz 73310fe993 import repetitions at top level 4 years ago
Jan Petykiewicz 3a2d889360 add mypy_cache to gitignore 4 years ago
Jan Petykiewicz 3b01117329 Bump version number to v0.6 4 years ago
Jan Petykiewicz 4c5f649eec Force mypy to ignore a bunch of simple situations it's not smart enough to reason about 4 years ago
Jan Petykiewicz 25b2cecec9 Minor changes to satisfy type checker 4 years ago