jan
abef8771db
fixes to subtree and lshift, as well as some cast() improvements
1 year ago
jan
f1baf8b577
oneshot available at toplevel
1 year ago
jan
355af43fe4
add @oneshot decorator
1 year ago
jan
e8b5c7dec8
lshift operator shouldn't special-case trees
...
Instead, just call .tops() if there are multiple cells, and fail if
there are multiple tops
1 year ago
jan
438b81e62e
find_toplevel -> tops
1 year ago
jan
41409cf4f7
create no longer exists. Make mk() give similar ordering as mkpat()
1 year ago
jan
0a14325af8
fix return value
1 year ago
jan
5b1abf5f72
top is always a string
1 year ago
jan
463c41b62a
cleanup
1 year ago
jan
62b82eb230
get rid of NamedPattern in favor of just returning a tuple
1 year ago
Jan Petykiewicz
3e48cc7190
Drop ports when repeating
1 year ago
Jan Petykiewicz
2364288ba7
port translation is already handled in Pattern
1 year ago
Jan Petykiewicz
ddcd38674f
drop ability to use python-gdsii
1 year ago
Jan Petykiewicz
742058885f
fix rounding
1 year ago
Jan Petykiewicz
0917b02a31
str(namedpattern) should just return its name
1 year ago
Jan Petykiewicz
c515ada2f8
updates to Pattern.polygonize()
1 year ago
Jan Petykiewicz
68ac593270
update to newer ezdxf
1 year ago
Jan Petykiewicz
e87b13c4eb
Need to check against self, since we may add new conflicts as we go
1 year ago
Jan Petykiewicz
f5d1fd2c29
Pipe-operator does not support forward references
1 year ago
Jan Petykiewicz
28424be3db
add polygon() and label() convenience methods
1 year ago
Jan Petykiewicz
a710494dd8
use Self type
1 year ago
Jan Petykiewicz
c9402500e2
modernize type annotations
1 year ago
Jan Petykiewicz
dfd745a76b
fix error message
1 year ago
Jan Petykiewicz
23c64b4f63
remove per-shape polygonization state
1 year ago
Jan Petykiewicz
7a4a96ff5f
fixes based on mypy
1 year ago
Jan Petykiewicz
3191866ce0
add prune_empty and delete()
1 year ago
Jan Petykiewicz
8c42145e44
fixes/updates
1 year ago
Jan Petykiewicz
1d720b6577
Drop ports by default
1 year ago
Jan Petykiewicz
38a7ba6434
force 'wb' mode for gzipfile
1 year ago
Jan Petykiewicz
2e8d06ad6e
data_to_ports max_depth default to 0
...
Makes it more compatible with LazyLibrary -- with recursive approach, we
have to load all the subcells to run ports2data, but those subcells may
or may not exist (e.g. partial library, or maybe we've removed some
duplicates-to-be prior to merging with a different lib)
1 year ago
Jan Petykiewicz
ea1a882c4e
pass along library for bounds
1 year ago
Jan Petykiewicz
ed8f2c1864
fix precache
1 year ago
Jan Petykiewicz
492565c1a6
redo library merging
1 year ago
Jan Petykiewicz
c6b8027b4d
pass along tools
1 year ago
Jan Petykiewicz
e8348dfa75
Make default quiet for underscores
1 year ago
Jan Petykiewicz
81b381e031
always apply postprocess
1 year ago
Jan Petykiewicz
cca6b90830
misc fixes
1 year ago
Jan Petykiewicz
d079b44883
Revert "allow ports2data to take a tree"
...
This reverts commit 44f823c736
.
LazyLibrary can't take Trees anymore, so no need for it.
1 year ago
Jan Petykiewicz
1d649389a0
LazyLibrary should not contain `Tree`s
...
altering itself during iteration is not a good idea
1 year ago
Jan Petykiewicz
dc2c12c26f
missing import
1 year ago
Jan Petykiewicz
a1c4cdee1e
fix type for __contains__
1 year ago
Jan Petykiewicz
44f823c736
allow ports2data to take a tree
1 year ago
Jan Petykiewicz
9d466882a0
misc fixes
1 year ago
Jan Petykiewicz
369bad9ae4
Only allow 1-sized Libraries
1 year ago
Jan Petykiewicz
ee6d857cad
Allow lshift to operate on any library. If only one name, return it, else None
1 year ago
Jan Petykiewicz
5e2018a1a1
add missing functions to tree
1 year ago
Jan Petykiewicz
5446a8c40b
add Pather.mk()
1 year ago
Jan Petykiewicz
a9188c5655
add name arg
1 year ago
Jan Petykiewicz
05f327387e
pather reorganization/clenaup
1 year ago
Jan Petykiewicz
482ca058bb
add lshift operator to MutableLibrary
1 year ago