Commit graph

6 commits

Author SHA1 Message Date
Luz Paz
b14c187ca2 Fix various typos
Found with `codespell -q 3 -L parm,parms,re-use`
2025-02-02 09:08:01 -05:00
Ethan Rooke
c31e92a165
test: fix test_random_slots 2024-11-18 10:50:01 -06:00
gumyr
2e81b9d5df Reformatted with black 24.2.0 2024-02-22 11:27:01 -05:00
Ami Fischman
aef4eb809d Speed up test_pack.py by fuse()ing once per test case.
A classic case of the win described by
https://build123d.readthedocs.io/en/latest/algebra_performance.html

Before, these test cases took 1.26s and 0.28s, making them the slowest
and 8th-slowest test cases in the entire repo according to `py.test
--durations=10`, and a full pytest run takes 12.31s.

After, these test cases both take 0.09s, and a full run takes 10.90s.

Also added `prof/` to `.gitignore` because using pytest's
`--profile{-svg}` options creates this directory but it is unlikely to
be usefully tracked by git.
2023-11-15 11:03:21 -08:00
Ami Fischman
dd649308c1 pack(): update to support Shape, not just Part.
Also fix SlotOverall so that passing it equal height and width doesn't
error out and instead reduces to a Circle. (bug discovered while
writing the new test case).
2023-11-10 09:07:54 -08:00
Ami Fischman
b767b78a69 pack(): introduced a new helper for packing parts into a 2D footprint.
Also added documentation for the new facility as well as a nascent
CONTRIBUTING.md to collect pointers to the tools used by developers of
this project.
2023-11-09 15:06:49 -08:00