Commit Graph

114 Commits (c69081331cbda3ad99e12a1b24ec907300d253a8)

Author SHA1 Message Date
Jan Petykiewicz 089e5192e3 various fixes and cleanup
mainly involving ports_to_data and data_to_ports
1 year ago
Jan Petykiewicz 326c9b9727 flake8-aided fixes 1 year ago
Jan Petykiewicz 8484628f2f fix more type issues 1 year ago
jan e482107366 wip 1 year ago
Jan Petykiewicz cb8897b8fe some type updates 1 year ago
Jan Petykiewicz 83b9af0cc3 Remove support for dose
Since there isn't GDS/OASIS level support for dose, this can be mostly
handled by using arbitrary layers/dtypes directly. Dose scaling isn't
handled as nicely that way, but it corresponds more directly to what
gets written to file.
1 year ago
Jan Petykiewicz ecb61c9174 get rid of "identifier" 1 year ago
jan 1741cfb755 wip again 1 year ago
jan 42c3a2b1e1 WIP: make libraries and names first-class! 1 year ago
jan 8edb7b0956 round().astype() -> rint(...) 1 year ago
Jan Petykiewicz b188589b60 Fix / simplify some cases where the arc is a sector 2 years ago
jan 4cc824526b fix deepcopy for locked shapes 2 years ago
jan a4aa50d814 fix another instance where numpy prohibits using `not bounds` 2 years ago
jan 20be409341 fix numpy complaining about .any() / .all() 2 years ago
jan 0471addd65 add get_bounds_nonempty 2 years ago
jan a4fe3d9e2e Use ArrayLike and NDArray wherever possible. Some type fixes and some related corner cases 2 years ago
jan 89f327ba37 reformat some multiline arg lists and add missing 'None' return types 2 years ago
Jan Petykiewicz 886bd59726 should be casting with numpy.array() not .ndarray() 3 years ago
Jan Petykiewicz 4796676a4e use ArrayLike when accepting pseudo-ndarrays 3 years ago
Jan Petykiewicz 65466a5986 Force keyword args in more cases 3 years ago
Jan Petykiewicz 21ef4207df Enable repetition arg for other Polygon constructors 3 years ago
Jan Petykiewicz bce3d9f37c Avoid placing duplicate vertices when polygonizing an arc 3 years ago
Jan Petykiewicz b7383a30ca fix mirroring across y for arcs and ellipses 4 years ago
Jan Petykiewicz 6c4fe0e9e4 Add octagon constructor 4 years ago
Jan Petykiewicz 8e1c05cf73 add mirror2d() to Rotatable 4 years ago
Jan Petykiewicz f364970403 style and type fixes (per flake8)
could potentially fix some bugs in `Library` class and dxf reader
4 years ago
Jan Petykiewicz c6684936cf Improve docs, error messages, and type annotations 4 years ago
Jan Petykiewicz f51144ae6a misc doc/import/typing fixes 4 years ago
Jan Petykiewicz 0e04633f61 Force use of keyword args on most constructors 4 years ago
Jan Petykiewicz 49a3b4e322 add support for annotations
and other fixes
4 years ago
Jan Petykiewicz e7c8708f7f prefer f-strings 4 years ago
Jan Petykiewicz d14182998b various fixes 4 years ago
Jan Petykiewicz f57ccc073d add `raw` arg, which skips setter funcs 4 years ago
Jan Petykiewicz 629a6a9ba2 enable per-shape repetitions 4 years ago
Jan Petykiewicz bab40474a0 Add repetitions and split up code into traits 4 years ago
Jan Petykiewicz d4fbdd8d27 add fast-path for 0-degree rotations 4 years ago
Jan Petykiewicz 0fa073b488 Make sure linspace gets an integer number of points 4 years ago
Jan Petykiewicz 8302286a7a allow using a string for the layer
Can't use it in gdsii, but no reason to forbit it in masque...
4 years ago
Jan Petykiewicz 6b09fc0c20 make section comments more prominent 4 years ago
Jan Petykiewicz a440f2e256 add Shape.set_layer() 4 years ago
Jan Petykiewicz c236fdb81b Add __repr__ methods to most objects`
These are closer to what __str__ should be and will likely change in the
future.
4 years ago
Jan Petykiewicz c79eee2a8c Stricter locking (lock contained ndarrays and turn lists into tuples) 4 years ago
Jan Petykiewicz 157df47884 Improve type annotations based on mypy errors 4 years ago
Jan Petykiewicz bd4085365f Path should create a Path, not a Polygon 4 years ago
Jan Petykiewicz 9bfb3bef9f avoid unnecessarily nested classes
Still provide a class variable for convenience
4 years ago
Jan Petykiewicz fa8fc52dd6 Improve consistency of ndarray members 4 years ago
Jan Petykiewicz 334633662e Remove extra __author__ declarations 4 years ago
Jan Petykiewicz df179c9233 Improve type annotations for layer 4 years ago
jan 5adabfd25a Docstring format change
(new param and return format)
Also some minor code formatting fixes in utils
4 years ago
Jan Petykiewicz 25c9e591cb shapes: unlock before modifying during deepcopy 5 years ago