Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for numpy 2 #41

Closed
wants to merge 11 commits into from
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Run Linting
shell: bash -l {0}
run: |
ruff .
ruff check .

- name: Run Tests
id: run_tests
Expand Down
74 changes: 46 additions & 28 deletions pyart/__check_build/_check_build.c

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

3 changes: 3 additions & 0 deletions pyart/aux_io/skyecho.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ def read_skyecho(
fields[field_name] = _ncvar_to_dict(ncvars[key], lazydict=True)
fields[field_name]['data'] = ncvars[key][
ind_sweep_start:ind_sweep_end+1, :]
if fields[field_name]['units'] == 'radians':
fields[field_name]['data'] *= 180/np.pi
fields[field_name]['units'] = 'deg'

if "ray_n_gates" in ncvars:
shape = (len(ncvars["time"]), len(ncvars["range"]))
Expand Down
Loading
Loading