dea3eca178
[utils.curves] ignore re-import of trapeziod
2026-01-19 21:25:30 -08:00
9869f12475
allow annotations to be None
...
breaking change, but properties are seldom used by anyone afaik
2026-01-19 21:25:30 -08: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
c3534beb3f
[utils.curves.bezier] be more explicit about broadcast axes
2025-02-25 21:27:16 -08:00
f14528654b
[utils.curves] add masque.utils.curves with Bezier and Euler curves
2025-02-25 21:09:04 -08: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
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
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
38e9d5c250
use strict zip
2024-07-28 20:31:41 -07:00
39d9b88fa4
flatten indentation where it makes sense
2024-07-28 20:31:29 -07:00
4c721feaec
re-exports: import x as x
2024-07-28 19:34:17 -07:00
6ec94fb3c3
import Sequence et al from collections.abc not typing
2024-07-28 19:33:16 -07:00
6db4bb96db
Create an ordering for everything
...
In order to make layouts more reproducible
Also add pattern.sort() and file.utils.preflight_check()
optionally don't sort elements
elements aren't re-ordered that often, sorting them is slow, and the
sort criteria are arbitrary, so we might want to only sort stuff by name
2024-06-03 17:00:20 -07:00
3a0c49174b
improve variable naming
2024-03-30 18:01:14 -07:00
73ce794fec
import pack2d by default
2023-10-15 23:07:37 -07:00
f40c74adb5
improve docs and variable names
2023-10-15 16:18:34 -07:00
9de382b856
Fix major bugs in presort
2023-10-15 16:18:34 -07:00
f7f5a62f54
Update comments
2023-10-15 16:18:33 -07:00
064c3803ed
fix comment
2023-10-15 16:18:33 -07:00
c55d95505c
improve accuracy of manhattan rotations
2023-10-15 16:18:33 -07:00
234264c0af
Make rotation matrix immutable and cache the value
2023-10-15 16:18:33 -07:00
9a077ea2df
move to dicty layers and targets
2023-10-15 16:18:33 -07:00
f0a71bfb8b
redo library class naming
2023-10-15 16:18:33 -07:00
46a7f60460
add @oneshot decorator
2023-10-15 16:18:33 -07:00
1463535676
modernize type annotations
2023-10-15 16:18:33 -07:00
88adc08259
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)
2023-10-15 16:18:33 -07:00
2ccef554db
misc fixes
2023-10-15 16:18:33 -07:00
d349aa3366
Revert "allow ports2data to take a tree"
...
This reverts commit 44f823c736bd5a8fd696562b6a732361295ff09b.
LazyLibrary can't take Trees anymore, so no need for it.
2023-10-15 16:18:33 -07:00
db7a98bb0f
allow ports2data to take a tree
2023-10-15 16:18:33 -07:00
7a8a3ef3c7
note in comments
2023-10-15 16:18:32 -07:00
963918d1d9
various fixes and cleanup
...
mainly involving ports_to_data and data_to_ports
2023-10-15 16:18:32 -07:00
16567c8a66
move builder.port_utils into utils.ports2data
...
and rename functions
2023-10-15 16:18:32 -07:00
5452bc5608
more fixes and improvements
2023-10-15 16:18:32 -07:00
6b01b43559
flake8-aided fixes
2023-10-15 16:18:32 -07:00
9efb6f0eeb
wip
2023-10-15 16:18:32 -07:00
d9ae8dd6e3
wip
2023-10-15 16:18:32 -07:00
7aaf73cb37
WIP: make libraries and names first-class!
2023-10-15 16:18:32 -07:00
97db83a1d5
add utils.vertices.poly_contains_points
2022-04-01 17:30:25 -07:00
c8b4075fcc
Avoid circular import
2022-02-27 21:26:51 -08:00
40b98b2511
add missing colon
2022-02-27 21:26:23 -08:00
7aa850a239
add todo note
2022-02-23 16:03:26 -08:00
9a9a05d1d7
add guillotine_bssf_sas
2022-02-23 16:03:26 -08:00
c2994b74bd
add utils.pack2d.pack_patterns
2022-02-23 16:03:26 -08:00