Commit Graph

52 Commits (master)

Author SHA1 Message Date
Jan Petykiewicz e47f9b76b1 remove TODO labels from mypy #3004 comments 7 months ago
jan 91465b7175 don't keep track of y-mirroring separately from x 7 months ago
jan 9a28e1617c renderpather, get_bounds includes repetitions, Boundable 7 months ago
jan 22e1c6ae1d fix bounds 7 months ago
jan e3c7150e18 missing import 7 months ago
jan 723d856915 repetitions affect bounds 7 months ago
Jan Petykiewicz 1463535676 modernize type annotations 7 months ago
Jan Petykiewicz 963918d1d9 various fixes and cleanup
mainly involving ports_to_data and data_to_ports
7 months ago
Jan Petykiewicz 6b01b43559 flake8-aided fixes 7 months ago
jan d9ae8dd6e3 wip 7 months ago
jan 7ca017d993 wip again 7 months ago
jan 7aaf73cb37 WIP: make libraries and names first-class! 7 months ago
Jan Petykiewicz a713967911 Add an alternate constructor for axis-aligned 2D grids 1 year ago
Jan Petykiewicz eb9682b1b8 Avoid calling new.unlock() in __deepcopy__()
since the new object's properties aren't necessarily deepcopied yet...
2 years ago
Jan Petykiewicz 6886360f6d fix getting displacements in Arbitrary repetition 2 years ago
Jan Petykiewicz 9f1c7aea01 add _displacements to __slots__ 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 4796676a4e use ArrayLike when accepting pseudo-ndarrays 3 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 49a3b4e322 add support for annotations
and other fixes
4 years ago
Jan Petykiewicz d14182998b various fixes 4 years ago
Jan Petykiewicz 794ebb6b37 repetition related fixup 4 years ago
Jan Petykiewicz bab40474a0 Add repetitions and split up code into traits 4 years ago
Jan Petykiewicz f3a1db30c5 Fix order of rotation/mirror/offset when calling as_pattern() on repetitions 4 years ago
Jan Petykiewicz d7a8bd7e0d Allow b_count=None 4 years ago
Jan Petykiewicz 22b2834d55 Documentation improvements 4 years ago
Jan Petykiewicz 8a404a2602 Allow setting subpattern identifier in constructors 4 years ago
Jan Petykiewicz 5c6c10d2be fix repetition __repr__ 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 00394a62f0 Formally allow instances to point to None (i.e. an 'empty' pattern) 4 years ago
Jan Petykiewicz f8c49cdb5e Add setter/getter for .pattern to catch wrong types 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 5adabfd25a Docstring format change
(new param and return format)
Also some minor code formatting fixes in utils
4 years ago
jan 20981f10b9 Fix error name
InvalidDataError -> PatternError
4 years ago
jan a930c65d42 fix gridrepetition mirror 4 years ago
Jan Petykiewicz 0db70d2c50 Change GridRepetition rotation/mirrored/scale properties so that they consistently apply only to the individual instances; the rotate()/mirror()/scale_by() functions apply to the full array. Add *_elements() versions of the functions 4 years ago
Jan Petykiewicz f2e6548d21 fix locking issue in __deepcopy__ 4 years ago
Jan Petykiewicz e0db621595 allow locking of all objects 4 years ago
Jan Petykiewicz 97b7eda21a Force repetition counts to be integers 4 years ago
Jan Petykiewicz f3669f2dfd fixup mirroring for subpatterns 4 years ago
Jan Petykiewicz 4bc51f765f custom __copy__ for SubPattern and GridRepetition
the difference between copy/deepcopy should be whether a copy is made of
the contained pattern
4 years ago
Jan Petykiewicz 7b0a567625 .mirrored should be an ndarray 4 years ago
Jan Petykiewicz 38f64f7c62 Use __slots__ for class members
Also use the other sort of type hints for instance variables
5 years ago
Jan Petykiewicz 0b962999b2 Add arbitrary identifier for labels and subpattern/repetition 5 years ago
Jan Petykiewicz a461446059 Custom deepcopy() implementations to help speed things up 5 years ago
Jan Petykiewicz d5665f54a7 Comment and type hint updates 5 years ago