Skip to content

Commit

Permalink
Merge pull request #966 from zssherman/cython_py39
Browse files Browse the repository at this point in the history
MAINT: Updated all cython files for python 3.9
  • Loading branch information
zssherman authored Nov 12, 2020
2 parents 8346eef + 866fd47 commit 9444fb1
Show file tree
Hide file tree
Showing 15 changed files with 32,398 additions and 29,076 deletions.
282 changes: 216 additions & 66 deletions pyart/__check_build/_check_build.c

Large diffs are not rendered by default.

6,463 changes: 3,385 additions & 3,078 deletions pyart/correct/_fast_edge_finder.c

Large diffs are not rendered by default.

2,179 changes: 1,171 additions & 1,008 deletions pyart/correct/_fourdd_interface.c

Large diffs are not rendered by default.

4,600 changes: 2,473 additions & 2,127 deletions pyart/correct/_unwrap_1d.c

Large diffs are not rendered by default.

4,604 changes: 2,478 additions & 2,126 deletions pyart/correct/_unwrap_2d.c

Large diffs are not rendered by default.

4,606 changes: 2,479 additions & 2,127 deletions pyart/correct/_unwrap_3d.c

Large diffs are not rendered by default.

5,836 changes: 3,325 additions & 2,511 deletions pyart/io/_rsl_interface.c

Large diffs are not rendered by default.

11,809 changes: 5,811 additions & 5,998 deletions pyart/io/_sigmetfile.c

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyart/io/_sigmetfile.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ cdef class SigmetFile:
# get the raw data ray-by-ray
for ray_i in xrange(nrays):
if self.debug:
print("Reading ray: %i of %i" % (ray_i, nrays), end='')
print("Reading ray: %i of %i" % (ray_i, nrays))
print("self._rbuf_pos is", self._rbuf_pos)
if self._get_ray(nbins, raw_sweep_data[ray_i]):
return None, None, None
Expand Down
4,838 changes: 2,590 additions & 2,248 deletions pyart/io/nexrad_interpolate.c

Large diffs are not rendered by default.

919 changes: 612 additions & 307 deletions pyart/map/_gate_to_grid_map.c

Large diffs are not rendered by default.

4,584 changes: 2,467 additions & 2,117 deletions pyart/map/_load_nn_field_data.c

Large diffs are not rendered by default.

5,784 changes: 2,761 additions & 3,023 deletions pyart/map/ckdtree.c

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions pyart/map/gates_to_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def map_gates_to_grid(

# Copy the field data and masks.
# TODO method that does not copy field data into new array
if nfields == 0:
raise ValueError(
'There are 0 fields in the radar object to interpolate!')
shape = (radar.nrays, radar.ngates, nfields)
field_data = np.empty(shape, dtype='float32')
field_mask = np.empty(shape, dtype='uint8')
Expand Down
4,965 changes: 2,626 additions & 2,339 deletions pyart/retrieve/_kdp_proc.c

Large diffs are not rendered by default.

0 comments on commit 9444fb1

Please sign in to comment.