jan
bc15a66ecc
remove extra assignments to *_count and *_vector, and adjust validity checks
4 years ago
jan
5ac774c386
drop OS tags from package
4 years ago
Jan Petykiewicz
4b7b6b82c1
bump version to v0.8
4 years ago
Jan Petykiewicz
94555c1b6e
Update modal coordinates even if we are in relative mode
4 years ago
Jan Petykiewicz
86c1e4cd3b
bump version to v0.7
4 years ago
Jan Petykiewicz
fdf5e9f598
enable type checking for downstream
4 years ago
Jan Petykiewicz
fab80c8517
cosmetic change to code
4 years ago
Jan Petykiewicz
492d6416db
Docstring updates: CTrapezoid info, Polygon+Path point_list description improvement, and better description of where x and y point to
4 years ago
Jan Petykiewicz
aaef122178
fixup array equality checking in the case where _USE_NUMPY is false but we somehow still get an ndarray
...
mostly happens during testing
4 years ago
Jan Petykiewicz
55638fcde5
fix placement rotation (float modulo int was always returning 0??)
4 years ago
Jan Petykiewicz
99283aaaf0
enable passing in str where an AString or NString is needed.
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
73310fe993
import repetitions at top level
4 years ago
Jan Petykiewicz
3a2d889360
add mypy_cache to gitignore
4 years ago
Jan Petykiewicz
3b01117329
Bump version number to v0.6
4 years ago
Jan Petykiewicz
4c5f649eec
Force mypy to ignore a bunch of simple situations it's not smart enough to reason about
4 years ago
Jan Petykiewicz
25b2cecec9
Minor changes to satisfy type checker
4 years ago
Jan Petykiewicz
c9adca61b6
get_pathext may return None
4 years ago
Jan Petykiewicz
1a259a1c19
Improve ctrapezoid validity checking
...
width/height might be None; check them against each other only if they
aren't. Also, perform checks after dedup/adjust.
4 years ago
Jan Petykiewicz
3af40dd1bc
Use a dummy unit of -1 when reading (to satisfy type checker)
4 years ago
Jan Petykiewicz
8fb2f2b594
fix attempted access to xname.string -> xname.bstring
4 years ago
Jan Petykiewicz
cfb3e90d71
Fix XYmode.absolute
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
f4eeb50a6f
Fix incorrect calls to .write()
4 years ago
Jan Petykiewicz
58b4f4a40f
Some minor docstring/readme updates
4 years ago
Jan Petykiewicz
b5a7c9a7ad
fix non-numpy read_bool_byte
4 years ago
Jan Petykiewicz
deb0fe3bef
Bump version to 0.5
5 years ago
Jan Petykiewicz
e0c2947865
trim down classifiers
5 years ago
Jan Petykiewicz
e514ade2b1
Use fatamorgana/VERSION file to single-source version number
...
`import fatamorgana` inside setup.py could break if dependencies weren't
satisfied
5 years ago
Henk van der Laak
203a520770
Read type0,1 pointlist correctly
5 years ago
Henk van der Laak
ab175641fe
Turn <3 points polygon exception into warning
5 years ago
jan
dbe033fdb7
Bump version number (0.4)
6 years ago
jan
3db93d18ed
Use version number from module in setup.py
6 years ago
jan
5f685b601b
Fix type hint
6 years ago
Jan Petykiewicz
d154ef23df
Bump version number
6 years ago
Jan Petykiewicz
ef8c5f9368
Use README.md as long_description in setup.py
6 years ago
Jan Petykiewicz
85e122622b
Ignore build directories in git
6 years ago