Skip to content

Commit

Permalink
Updates to pyart unit tests to match ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan committed Aug 5, 2024
1 parent 54f6d16 commit e5efe05
Show file tree
Hide file tree
Showing 17 changed files with 8,771 additions and 23,650 deletions.
756 changes: 149 additions & 607 deletions pyart/__check_build/_check_build.c

Large diffs are not rendered by default.

3,619 changes: 979 additions & 2,640 deletions pyart/correct/_fast_edge_finder.c

Large diffs are not rendered by default.

2,011 changes: 516 additions & 1,495 deletions pyart/correct/_unwrap_1d.c

Large diffs are not rendered by default.

2,021 changes: 518 additions & 1,503 deletions pyart/correct/_unwrap_2d.c

Large diffs are not rendered by default.

2,021 changes: 518 additions & 1,503 deletions pyart/correct/_unwrap_3d.c

Large diffs are not rendered by default.

5,759 changes: 1,827 additions & 3,932 deletions pyart/io/_sigmetfile.c

Large diffs are not rendered by default.

2,103 changes: 533 additions & 1,570 deletions pyart/io/nexrad_interpolate.c

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyart/io/output_to_geotiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _get_rgb_values(data, vmin, vmax, color_levels, cmap):
rarr = []
garr = []
barr = []
cmap = plt.cm.get_cmap(cmap)
cmap = plt.get_cmap(cmap)
for val in index:
if not np.isnan(val):
ind = int(np.round(val))
Expand Down Expand Up @@ -287,7 +287,7 @@ def _create_sld(cmap, vmin, vmax, filename, color_levels=None):
with steps << 255 (e.g., hydrometeor ID).
"""
cmap = plt.cm.get_cmap(cmap)
cmap = plt.get_cmap(cmap)
if color_levels is None:
color_levels = 255
name, _ = filename.split(".")
Expand Down
14 changes: 7 additions & 7 deletions pyart/map/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"""

from .gate_mapper import GateMapper # noqa
from .grid_mapper import map_to_grid, grid_from_radars #noqa
from .grid_mapper import example_roi_func_constant #noqa
from .grid_mapper import example_roi_func_dist #noqa
from .grid_mapper import example_roi_func_dist_beam #noqa
from .polar_to_cartesian import polar_to_cartesian #noqa
from .polar_to_cartesian import get_earth_radius #noqa
from .gates_to_grid import map_gates_to_grid #noqa
from .gates_to_grid import map_gates_to_grid # noqa
from .grid_mapper import example_roi_func_constant # noqa
from .grid_mapper import example_roi_func_dist # noqa
from .grid_mapper import example_roi_func_dist_beam # noqa
from .grid_mapper import grid_from_radars # noqa
from .grid_mapper import map_to_grid # noqa
from .grid_mapper import grid_ppi_sweeps, grid_rhi_sweeps # noqa

__all__ = [s for s in dir() if not s.startswith("_")]
Loading

0 comments on commit e5efe05

Please sign in to comment.