5a4b9609bd
close code block
2025-03-12 23:14:45 -07:00
30cfa0da31
Bump version to v3.3
release
v3.3
2025-03-12 23:11:35 -07:00
d11c910dfd
[utils.curves] improve type annotations
2025-03-12 23:10:49 -07:00
9b2f8599e6
[utils.curves] use numpy.trapezoid for 2.0 compatibility
...
fall back to trapz if import fails
2025-03-12 23:09:45 -07:00
6c76e1f5cf
Add R90 and R180 constants for rotation shorthand
2025-03-12 23:04:51 -07:00
6567394fbf
[utils.curves.bezier] Fix and clarify bezier() code
...
- Accuracy fix (incorrect +1 term)
- Explicitly index last dim of `nodes`
- Suppress warnings about div by zero
- simplify `umul` and `udiv` calculation
2025-03-04 23:00:52 -08:00
858ef4a114
[utils.curves.euler_bend] add num_point arg and improve naming
2025-03-03 00:53:34 -08:00
b27b1d93d8
[utils.curves.bezier] improve handling of non-ndarray inputs
2025-03-03 00:52:51 -08:00
c74573e7dd
[Arc] improve some variable names
2025-03-03 00:52:24 -08:00
0e34242ba5
misc type hint fixes
2025-03-03 00:52:04 -08:00
c3534beb3f
[utils.curves.bezier] be more explicit about broadcast axes
2025-02-25 21:27:16 -08:00
cae6de69c1
[path] Fix calls to numpy.linalg.solve for numpy 2
2025-02-25 21:15:32 -08:00
f14528654b
[utils.curves] add masque.utils.curves with Bezier and Euler curves
2025-02-25 21:09:04 -08:00
6631c5e558
clear out some old TODOs
2025-02-25 21:09:04 -08:00
cd60dcc765
add the toolctx() context manager to simplify temporary retool() calls
2025-02-25 21:09:04 -08:00
fcb470a02c
use cast() to clarify some type checker complaints
2025-02-25 21:09:04 -08:00
93471a221c
add ok_connections
arg to allow plugging mismatched ports without warnings
2025-02-25 21:09:04 -08:00
4e862d6853
cleanup
2024-12-12 23:47:46 -08:00
9917355bb0
speed up prune_empty() on large patterns
2024-12-12 23:47:28 -08:00
94a1b3d793
cleanup comment
2024-10-14 17:25:01 -07:00
7c7a7e916c
Fix offset handling in polygon normalized_form()
2024-10-14 17:24:49 -07:00
73193473df
Fixup arclength calculation for wedges (or other thick arcs)
2024-10-05 11:24:40 -07:00
febaaeff0b
add Library functions for finding instances and extracting hierarchy
...
added child_graph, parent_graph, child_order, find_refs_local and find_refs_global
2024-10-04 17:21:31 -07:00
a54ee5a26c
bump klamath req
2024-08-01 00:41:01 -07:00
8d671ed709
bump version to v3.2
...
Highlights:
- Pather.path_into() for connecting into existing ports
- Pattern.plugged() for removing ports which were manually pathed into
each other.
- Defined ordering/comparsions to enable sorting patterns and shapes
- numpy 2.0 compatibility
- Fix bounds calculation for arrays with manhattan rotations
- Bugfixes for DXF and OASIS
- Speed improvement for default Library.get_name() and GDS writing
2024-07-29 21:00:40 -07:00
a816a7db8e
allow numpy v2.0
2024-07-29 18:24:31 -07:00
a8a42bba1d
speed up b64suffix by using a simple array lookup instead of base64.b64encode
2024-07-29 11:30:31 -07:00
da7118f521
misc cleanup
2024-07-29 03:13:36 -07:00
ef6c5df386
be more consistent about when copies are made
2024-07-29 03:13:23 -07:00
ad0adec8e8
numpy.array(..., copy=False) -> numpy.asarray(...)
...
For numpy 2.0
2024-07-29 02:37:48 -07:00
8fd6896a71
set stacklevel=1
2024-07-28 20:41:17 -07:00
1ae3ffb9a2
linter cleanup
2024-07-28 20:35:37 -07:00
810a09f18b
simplify comparison
2024-07-28 20:34:25 -07:00
97688ffae1
don't want to use context manager here
2024-07-28 20:32:55 -07:00
445c5690e1
use path.open
2024-07-28 20:32:55 -07:00
7e1f617274
fix bug where use_mmap was ignored
2024-07-28 20:32:53 -07:00
b10803efe9
pass along string arg
2024-07-28 20:31:41 -07:00
5f0a450ffa
no need for string annotation
2024-07-28 20:31:41 -07:00
aa3636ebc6
flatten indent
2024-07-28 20:31:41 -07:00
48ffc9709e
double quotes for docstrings
2024-07-28 20:31:41 -07:00
5cdafd580f
don't need ABCMeta here
2024-07-28 20:31:41 -07:00
2cf187fdb8
def-in-loop needs assigments for vars
2024-07-28 20:31:41 -07:00
99e55f931c
refactor to single-line conditional assignments
2024-07-28 20:31:41 -07:00
c48b427c77
mark some missing annotations as intentional
2024-07-28 20:31:41 -07:00
62fc64c344
iteration and collection simplifications
2024-07-28 20:31:41 -07:00
f304217d76
format is ok
2024-07-28 20:31:41 -07:00
ae21a2132e
handle int-based cell references
2024-07-28 20:31:41 -07:00
e159c80b0c
improve error generation and handling
2024-07-28 20:31:41 -07:00
38e9d5c250
use strict zip
2024-07-28 20:31:41 -07:00
5614eea3b4
Update DXF reading
2024-07-28 20:31:41 -07:00