Skip to content

Commit b104d98

Browse files
authored
Merge pull request #44 from MeteoSwiss/dev
Dev
2 parents 99c22a6 + c3881f0 commit b104d98

30 files changed

+8923
-6098
lines changed

.github/workflows/build_docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- master
7-
pull_request:
7+
pull_request_target:
88
branches:
99
- master
1010

@@ -35,7 +35,7 @@ jobs:
3535
3636
- name: Install PyART
3737
run: |
38-
pip install -e .
38+
python -m pip install -e . --force-reinstall --no-deps
3939
4040
# Build the website
4141
- name: Build the site

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- dev
77
- master
8-
pull_request:
8+
pull_request_target:
99
branches:
1010
- dev
1111
- master
@@ -56,8 +56,7 @@ jobs:
5656
- name: Install PyART
5757
shell: bash -l {0}
5858
run: |
59-
python -m pip install -e . --no-deps --force-reinstall
60-
59+
python -m pip install -e . --force-reinstall --no-deps
6160
- name: Run Linting
6261
shell: bash -l {0}
6362
run: |
@@ -66,6 +65,7 @@ jobs:
6665
- name: Run Tests
6766
id: run_tests
6867
shell: bash -l {0}
68+
working-directory: ${{github.workspace}}/tests/
6969
run: |
7070
python -m pytest -v --cov=./ --cov-report=xml
7171
env:

pyart/__check_build/_check_build.c

+52-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyart/aux_io/skyecho.py

+3
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ def read_skyecho(
295295
fields[field_name] = _ncvar_to_dict(ncvars[key], lazydict=True)
296296
fields[field_name]['data'] = ncvars[key][
297297
ind_sweep_start:ind_sweep_end+1, :]
298+
if fields[field_name]['units'] == 'radians':
299+
fields[field_name]['data'] *= 180/np.pi
300+
fields[field_name]['units'] = 'deg'
298301

299302
if "ray_n_gates" in ncvars:
300303
shape = (len(ncvars["time"]), len(ncvars["range"]))

0 commit comments

Comments
 (0)