93 Commits

Author SHA1 Message Date
08035db218 Loosen requirements from List to Sequence 2020-09-18 19:07:14 -07:00
0ba3dcb3d8 don't attempt to set structure properties 2020-09-18 19:06:56 -07:00
f8db1e59c7 improve type annotations 2020-09-18 19:06:44 -07:00
ffa6c7a16c limit number of arguments on more functions 2020-09-10 20:47:00 -07:00
73c9050138 add support for annotations
and other fixes
2020-09-10 20:06:58 -07:00
e10565e624 fix incorrect variable name 2020-09-09 19:41:06 -07:00
fea6cc5abb documentation fixes/updates 2020-08-15 18:23:16 -07:00
7ac0d8a907 prefer f-strings 2020-08-15 18:23:04 -07:00
c903e2f820 move shape conversions to their own functions, and use raw mode 2020-08-15 18:21:32 -07:00
b4064a76b8 remove use_dtype_as_dose arg 2020-08-15 18:20:04 -07:00
547e61fcc5 set repetition on subpattern 2020-08-12 21:42:57 -07:00
e1d890b44e Enable repeated shapes in gdsii and oasis 2020-07-27 01:32:34 -07:00
f99b72262e Expect name to still be a string after disambiguation
Check that encode('ascii') doesn't make it zero-length, but don't
actually return the encoded form.
2020-07-22 21:50:22 -07:00
9bf627ab17 repetition related fixup 2020-07-22 21:48:56 -07:00
6028cbf736 Add repetitions and split up code into traits 2020-07-22 02:45:16 -07:00
09615eaea6 use set() to remove any duplicates in patterns 2020-05-23 19:38:17 -07:00
e401f37993 Improve documentation on disambiguate_pattern_names 2020-05-23 19:37:55 -07:00
8082743e17 move dose2dtype() into masque.file.utils, add dtype2dose(), and add a note that use_dtype_as_dose 2020-05-19 00:13:50 -07:00
1b0b056bf9 break out build() which returns the gdsii.library.Library object 2020-05-19 00:03:29 -07:00
22b2834d55 Documentation improvements 2020-05-17 22:59:54 -07:00
f9fb7ccad3 move gdsii import below standard packages 2020-05-17 17:22:50 -07:00
f260fe1374 comment fixup 2020-05-17 14:12:38 -07:00
8302286a7a allow using a string for the layer
Can't use it in gdsii, but no reason to forbit it in masque...
2020-05-17 14:11:47 -07:00
247b31a9d6 Don't include None in referenced_patterns_by_id() by default 2020-05-17 14:05:19 -07:00
f312f50751 some typing clarifications 2020-05-12 14:17:35 -07:00
ee8f015172 add subpattern_t type (generalizattion of SubPattern and GridRepetition) 2020-05-12 14:17:17 -07:00
157df47884 Improve type annotations based on mypy errors 2020-05-11 19:09:35 -07:00
d33afc2bfd disambiguate some variable names 2020-05-11 19:01:02 -07:00
8493364e9c Use a tuple for .identifier 2020-05-11 18:59:47 -07:00
00394a62f0 Formally allow instances to point to None (i.e. an 'empty' pattern) 2020-05-11 18:58:57 -07:00
334633662e Remove extra __author__ declarations 2020-05-11 18:41:13 -07:00
df179c9233 Improve type annotations for layer 2020-05-11 18:39:02 -07:00
jan
5adabfd25a Docstring format change
(new param and return format)
Also some minor code formatting fixes in utils
2020-02-17 21:02:53 -08:00
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 2020-02-07 23:01:14 -08:00
64b8e4dec8 Fix duplicates in gds with multiple top-level cells
Since the different patterns we are handed might reference the same
Patterns, we have to deepcopy the entire list at once so that we
don't make multiple copies of them.
2020-01-07 22:17:00 -08:00
e0db621595 allow locking of all objects 2019-12-13 21:18:31 -08:00
09711116a7 allow more freedom in pattern names (e.g. names which violate spec, longer suffixes, filter warning, etc) 2019-12-12 01:48:36 -08:00
df9c4b52f4 add some todos 2019-12-12 01:48:24 -08:00
fcc4770534 Mirroring fix for gdsii import 2019-12-11 21:16:31 -08:00
f3669f2dfd fixup mirroring for subpatterns 2019-12-06 22:19:16 -08:00
49982f1207 Add newlines to long log messages 2019-05-25 12:40:17 -07:00
jan
0ab5674fb9 strans needs starting value (0) 2019-05-20 21:04:07 -07:00
75b42f6b63 Use normalize_mirror for all 2d-to-1d mirroring 2019-05-18 15:05:30 -07:00
76f213a7ce use .identifier instead of the dynamically-created .ref_name 2019-05-17 20:51:53 -07:00
17451cd995 Force dose2dtype to accept only a list of patterns
Backwards incompatible, just like the rest of the gdsii rework
2019-05-17 00:30:32 -07:00
1ef8518c60 Fix dose2dtype
Was broken during gdsii refactor
2019-05-17 00:28:46 -07:00
4bd5542ce9 Clarify warning when adding suffix 2019-05-15 23:51:17 -07:00
3ff9a8a506 Shorten long names when writing
Maybe turn this into an option later?
2019-05-15 23:51:00 -07:00
376cbcce26 Use buffered IO
free ~10% speedup on read, probably similar on write
2019-05-15 23:50:31 -07:00
bc43be48bc Implement SquareCustom end-caps and gds output 2019-05-15 00:14:17 -07:00