Skip to content

Commit

Permalink
Merge pull request #44 from MeteoSwiss/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
wolfidan authored Jun 25, 2024
2 parents 99c22a6 + c3881f0 commit b104d98
Show file tree
Hide file tree
Showing 30 changed files with 8,923 additions and 6,098 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- master
pull_request:
pull_request_target:
branches:
- master

Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install PyART
run: |
pip install -e .
python -m pip install -e . --force-reinstall --no-deps
# Build the website
- name: Build the site
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- dev
- master
pull_request:
pull_request_target:
branches:
- dev
- master
Expand Down Expand Up @@ -56,8 +56,7 @@ jobs:
- name: Install PyART
shell: bash -l {0}
run: |
python -m pip install -e . --no-deps --force-reinstall
python -m pip install -e . --force-reinstall --no-deps
- name: Run Linting
shell: bash -l {0}
run: |
Expand All @@ -66,6 +65,7 @@ jobs:
- name: Run Tests
id: run_tests
shell: bash -l {0}
working-directory: ${{github.workspace}}/tests/
run: |
python -m pytest -v --cov=./ --cov-report=xml
env:
Expand Down
80 changes: 52 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

0 comments on commit b104d98

Please sign in to comment.