Commit Graph

28 Commits (bc15a66ecc0f98c5c190eec3a3a1b1ee7397414a)

Author SHA1 Message Date
jan bc15a66ecc remove extra assignments to *_count and *_vector, and adjust validity checks 4 years ago
Jan Petykiewicz fab80c8517 cosmetic change to code 4 years ago
Jan Petykiewicz 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.
4 years ago
Jan Petykiewicz e4a62a0f32 fix write_interval for bounded intervals 4 years ago
Jan Petykiewicz 715fe7ea24 fix non-numpy write_point_list 4 years ago
Jan Petykiewicz d25f3f1598 enable str() casts on NString and AString 4 years ago
Jan Petykiewicz e909aa958d fix equality for things which may or may not be numpy arrays 4 years ago
Jan Petykiewicz 411012079d bifurctae read_bool_byte and write_bool_byte into _np_* and _py_* variants 4 years ago
Jan Petykiewicz f15499030d only write the first byte -- probably no different but clearer 4 years ago
Jan Petykiewicz 7f0c46525e improve type annotations 4 years ago
Jan Petykiewicz e9cf010f54 fix read_u32 4 years ago
Jan Petykiewicz 06de10062d Additional error checking 4 years ago
Jan Petykiewicz 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
4 years ago
Jan Petykiewicz 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
4 years ago
Jan Petykiewicz e046af8ce8 Handle more error cases 4 years ago
Jan Petykiewicz 533c85b249 Fix conditional for writing real-typed properties 4 years ago
Jan Petykiewicz bb9ebfc8f9 Generate a warning instead of printing 4 years ago
Jan Petykiewicz b5a7c9a7ad fix non-numpy read_bool_byte 4 years ago
Henk van der Laak 203a520770 Read type0,1 pointlist correctly 5 years ago
jan 5f685b601b Fix type hint 6 years ago
Jan Petykiewicz 9133245d49 Add debug logging for cblock read() 6 years ago
Jan Petykiewicz af60d73427 Add missing type hint 6 years ago
Jan Petykiewicz 4a6a8b6c5d Fix reader for octangular point lists 6 years ago
Jan Petykiewicz acd4e96db0 Return more info when encountering an invalid repetition_type in ArbitraryRepetition 6 years ago
Jan Petykiewicz 10ffcc18ea Fix crash in ArbitraryRepetition 6 years ago
Jan Petykiewicz 9d1f601ee9 Fix read_float* functions 6 years ago
jan 0c8e187444 Subclass all errors from FatamorganaError 6 years ago
jan dc5538dd68 initial commit 7 years ago