Commit Graph

67 Commits

Author SHA1 Message Date
d44e02e2f7 return figure and axes after plotting 2024-07-18 00:17:58 -07:00
3e4e6eead3 flake8 fixup 2024-07-18 00:17:45 -07:00
a94c2cae67 type hint modernization 2024-07-18 00:17:20 -07:00
73d07bbfe0 disaambiguate some variables for typing purposes 2022-10-18 19:44:47 -07:00
ec5c77e018 typing and formatting updates 2022-10-18 19:44:30 -07:00
7d3b2272bc bump version to v1.1 2022-08-29 13:11:12 -07:00
e1303b8a5c move to hatch-based builds 2022-08-29 13:07:46 -07:00
9276f8f86b bump version to 1.0
Breaking changes:
-`eps` argument renamed to `foreground`
- `Grid` no longer contains actual data (iem the data modified by draw_*
functions), only the metadata (edge positions, periodicity, etc.). Data
is now a user-managed ndarray.
2021-10-31 19:21:24 -07:00
2fd837500a Add some tests 2021-10-31 19:03:05 -07:00
85d9ff7ace use dtype when allocating 2021-10-31 19:02:49 -07:00
f04aec9a1b rename eps -> foreground 2021-10-31 19:00:32 -07:00
078bec08d3 Make epsilon float32 by default 2021-10-24 19:53:15 -07:00
fcd02d3dcf doc updates 2021-10-24 19:53:06 -07:00
dac0813cc9 add example 2021-10-24 19:07:23 -07:00
22f218c054 Grid.save() should return self 2021-10-24 19:07:23 -07:00
b9f6507498 doc and type hint fixes 2021-10-24 19:07:23 -07:00
7340d41f10 Use f-strings where possible 2021-10-24 19:07:23 -07:00
ff5ffb2f40 Remove is_scalar() in favor of numpy.size(...)==1 2021-10-24 19:07:23 -07:00
551da07f3e Move .grids data into separate cell_data array. Also remove Direction enum 2021-10-24 19:07:20 -07:00
fbf173072a avoid importing a bunch of numpy functions 2021-10-24 19:07:10 -07:00
6f9334bc94 strip whitespace from version string 2021-07-11 17:22:36 -07:00
145af8bef8 add py.typed 2021-01-09 00:58:17 -08:00
1bfae4d7f6 bump version to v0.5 2021-01-08 23:16:54 -08:00
bdf05d96be fix numpy warning about indexing with a list 2021-01-08 23:14:44 -08:00
f338d06be6 simplify GridError definition 2021-01-08 23:03:22 -08:00
1067c3b780 Fix loop variables not getting saved in closures 2021-01-08 23:03:09 -08:00
f486209950 general cleanup and typing fixes 2021-01-08 22:58:36 -08:00
db9e7831b9 move to simpler docstring format and improve type annotations 2021-01-08 22:43:22 -08:00
4e0a5ede21 Use VERSION.py instead of plain VERSION
reduce dependence on package_data
2020-11-03 01:35:38 -08:00
db6819ccc6 fix z-interpolation 2020-10-27 18:19:32 -07:00
a900946890 fix crash in shifted_exyz 2019-12-13 01:22:00 -08:00
43936d1415 Rework interpolation for extruded polygon to fix lots of issues 2019-12-13 01:20:34 -08:00
d4b0177386 more member docs 2019-11-27 19:32:53 -08:00
00dd0718fa fix center calculation 2019-11-27 19:32:25 -08:00
aab3754d1a move member docs to __init__ 2019-11-27 19:31:48 -08:00
cf52380702 bump version to v0.4 2019-09-30 23:41:25 -07:00
f62be35966 use VERSION file to avoid importing gridlock before its installed 2019-09-30 23:40:23 -07:00
e97bd482a9 initialize to 1.0 instead of (1.0,)*3
matches docs, and works better in cases where there are more/fewer grids
2019-09-30 23:37:25 -07:00
0c4a773b84 Make .grids an ndarray instead of a list-of-ndarrays 2019-09-30 23:34:49 -07:00
jan
24d012fccc Warnings should reference their caller 2019-04-07 17:18:57 -07:00
jan
893d8bcb15 Cleaner approach to indexing 2019-04-07 17:18:45 -07:00
jan
a094241f37 w_coord_fp should not be negative 2019-04-07 17:18:20 -07:00
c524b28fe6 fixup center calculation 2019-04-07 16:56:31 -07:00
aaf4e6e498 bump version number to 0.3 2018-09-16 20:02:07 -07:00
9b82a5d16d Move version number into module 2018-09-16 20:00:36 -07:00
4a8bd7b225 Update for numpy 1.15 2018-09-16 19:55:16 -07:00
jan
f86ae22e02 Fix marching_cubes for modern skimage 2018-01-15 22:56:45 -08:00
jan
0d1099cd8e Fix documentation typo 2018-01-15 22:56:14 -08:00
jan
6db836d3a3 Split Grid class into multiple files 2017-10-10 16:42:11 -07:00
c7572c9c8d fix drawing in non-polygon axis 2017-09-29 12:19:10 -07:00