Commit Graph

36 Commits (f3649704037202a5598f6880fcaf132db224e543)

Author SHA1 Message Date
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 0e04633f61 Force use of keyword args on most constructors 4 years ago
Jan Petykiewicz 49a3b4e322 add support for annotations
and other fixes
4 years ago
Jan Petykiewicz e7c8708f7f prefer f-strings 4 years ago
Jan Petykiewicz cbb5462fcb spelling fix and wrong import 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 22b2834d55 Documentation improvements 4 years ago
Jan Petykiewicz 8a404a2602 Allow setting subpattern identifier in constructors 4 years ago
Jan Petykiewicz ee8f015172 add subpattern_t type (generalizattion of SubPattern and GridRepetition) 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 Petykiewicz e9244055c6 Add type check for SubPattern's pattern arg 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 Petykiewicz f2e6548d21 fix locking issue in __deepcopy__ 4 years ago
Jan Petykiewicz e0db621595 allow locking of all objects 4 years ago
Jan Petykiewicz f3669f2dfd fixup mirroring for subpatterns 5 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
5 years ago
Jan Petykiewicz 7b0a567625 .mirrored should be an ndarray 5 years ago
Jan Petykiewicz 16c6bfc70a Cosmetic changes to argument lists 5 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 9ecd34b2f7 Cast offsets to float 5 years ago
jan 539198435c Add .copy() and .deepcopy() convenience methods 5 years ago
Jan Petykiewicz 8dfd856e18 Subtattern .as_pattern() should deepcopy 6 years ago
jan f580e784f7 Add mirroring functions to patterns/subpatterns 6 years ago
Jan Petykiewicz 87c2ef5948 use pyclipper for polygon cutting 7 years ago
jan 0a7c26bb08 No need to subclass 'object' in python3 7 years ago
jan 5bf486ac81 Add all files to repository 8 years ago