Skip to content

Commit

Permalink
[BUG] fixes for change in cython 3.0 behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan committed Jul 19, 2023
1 parent 9f94cca commit 6968109
Show file tree
Hide file tree
Showing 6 changed files with 490 additions and 488 deletions.
246 changes: 123 additions & 123 deletions pyart/correct/_fast_edge_finder.c

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyart/correct/_unwrap_1d.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

246 changes: 123 additions & 123 deletions pyart/io/_sigmetfile.c

Large diffs are not rendered by default.

246 changes: 123 additions & 123 deletions pyart/map/ckdtree.c

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion pyart/map/grid_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def map_to_grid(radars, grid_shape, grid_limits, grid_origin=None,
grid_origin_alt=None, grid_projection=None,
fields=None, gatefilters=False,
map_roi=True, weighting_function='Barnes', toa=17000.0,
copy_field_data=True, algorithm='kd_tree', leafsize=10.,
copy_field_data=True, algorithm='kd_tree', leafsize=10,
roi_func='dist_beam', constant_roi=None,
z_factor=0.05, xy_factor=0.02, min_radius=500.0,
h_factor=1.0, nb=1.5, bsp=1.0, **kwargs):
Expand Down Expand Up @@ -428,6 +428,8 @@ def map_to_grid(radars, grid_shape, grid_limits, grid_origin=None,

if algorithm not in ['kd_tree']:
raise ValueError('unknown algorithm: %s' % algorithm)

leafsize = int(leafsize)
badval = get_fillvalue()

# parse the grid_projection
Expand Down

0 comments on commit 6968109

Please sign in to comment.