Commit Graph

31 Commits

Author SHA1 Message Date
60f879a1ad style fixes (per flake8) 2020-10-16 19:00:00 -07:00
3ca999fa2e documentation updates 2020-09-10 20:03:19 -07:00
2c2013a0fc move typing imports to top of file 2020-09-10 19:54:25 -07:00
jan
bc15a66ecc remove extra assignments to *_count and *_vector, and adjust validity checks 2020-07-03 13:27:34 -07:00
fab80c8517 cosmetic change to code 2020-05-19 00:51:24 -07:00
705926d443 Add UnfilledModalError, records.verify_modal(), and .get_*() methods.
The .get_*() methods are used to verify that we aren't reading from a
pattern with un-filled modals.

The GeometryMixin class was also added here and provides some additional
convenience methods: get_xy() to get an (x,y) tuple and
get_layer_tuple() to get a (layer, datatype) tuple.
2020-05-19 00:42:42 -07:00
e4a62a0f32 fix write_interval for bounded intervals 2020-05-19 00:22:53 -07:00
715fe7ea24 fix non-numpy write_point_list 2020-05-19 00:21:50 -07:00
d25f3f1598 enable str() casts on NString and AString 2020-05-19 00:21:23 -07:00
e909aa958d fix equality for things which may or may not be numpy arrays 2020-05-19 00:20:59 -07:00
411012079d bifurctae read_bool_byte and write_bool_byte into _np_* and _py_* variants 2020-05-19 00:20:38 -07:00
f15499030d only write the first byte -- probably no different but clearer 2020-05-19 00:17:31 -07:00
7f0c46525e improve type annotations 2020-04-18 15:38:52 -07:00
e9cf010f54 fix read_u32 2020-04-18 15:35:42 -07:00
06de10062d Additional error checking 2020-04-18 15:35:29 -07:00
62fca39a69 Modernize comments and type annotations. Ugly commit with a couple code fixes:
- modal variable name change: path_halfwidth -> path_half_width
- Fixed `hasattr(other, 'as_list')` calls in __eq__() functions
2020-04-18 03:08:08 -07:00
6f2200c5ed Faster/simpler cumsum approach in read_point_list
Reqires a special case for ndarrays in dedup_field() -- probably a good
idea anyways if user gives us an ndarray
2020-04-18 03:00:36 -07:00
e046af8ce8 Handle more error cases 2020-04-18 02:54:46 -07:00
533c85b249 Fix conditional for writing real-typed properties 2020-04-18 01:42:14 -07:00
bb9ebfc8f9 Generate a warning instead of printing 2020-04-18 01:37:53 -07:00
b5a7c9a7ad fix non-numpy read_bool_byte 2020-04-16 22:41:53 -07:00
203a520770 Read type0,1 pointlist correctly 2019-09-08 11:25:42 +02:00
jan
5f685b601b Fix type hint 2018-07-27 10:58:32 -07:00
9133245d49 Add debug logging for cblock read() 2018-07-21 14:04:59 -07:00
af60d73427 Add missing type hint 2018-07-21 14:03:16 -07:00
4a6a8b6c5d Fix reader for octangular point lists 2018-07-21 13:37:24 -07:00
acd4e96db0 Return more info when encountering an invalid repetition_type in ArbitraryRepetition 2018-07-21 13:36:38 -07:00
10ffcc18ea Fix crash in ArbitraryRepetition 2018-07-21 13:32:00 -07:00
9d1f601ee9 Fix read_float* functions 2018-07-21 13:30:59 -07:00
jan
0c8e187444 Subclass all errors from FatamorganaError 2017-12-17 21:53:25 -08:00
jan
dc5538dd68 initial commit 2017-09-18 03:01:48 -07:00