Commit Graph

33 Commits (fd9f16d70595ac1ee7741b2a1fe5c906b5d496e8)

Author SHA1 Message Date
Jan Petykiewicz fd9f16d705 add implicit_closed arg to read_point_list()
The process for closing a point list depends on the delta type, so it
needs to happen at read time. However, paths aren't implicity closed, so
it needs to be an input option.
3 years ago
Jan Petykiewicz a64f2726d0 Don't attempt to decode magic bytes
Since they're wrong, they're likely not decodable anyways.
3 years ago
Jan Petykiewicz 60f879a1ad style fixes (per flake8) 4 years ago
Jan Petykiewicz 3ca999fa2e documentation updates 4 years ago
Jan Petykiewicz 2c2013a0fc move typing imports to top of file 4 years ago
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