Skip to content

Commit db84304

Browse files
committed
merge with dev
1 parent cc2a5bb commit db84304

File tree

3 files changed

+17
-41
lines changed

3 files changed

+17
-41
lines changed

.github/workflows/pyrad_tests_base.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ jobs:
3434
- uses: actions/setup-python@v2
3535
with:
3636
python-version: ${{ matrix.python-version }}
37+
# Install dependencies
38+
- name: Setup Conda Environment
39+
uses: mamba-org/setup-micromamba@v1
40+
with:
41+
environment-file: ci/environment-ci.yml
42+
activate-environment: pyrad-dev
43+
cache-downloads: true
44+
python-version: ${{ matrix.python-version }}
3745
- name: Clone pyart
3846
uses: actions/checkout@master
3947
with:
@@ -44,24 +52,6 @@ jobs:
4452
with:
4553
repository: MeteoSwiss/pyrad-tests
4654
path: pyrad-tests
47-
- name: Setup Miniconda
48-
uses: mamba-org/setup-micromamba@v1.9.0
49-
with:
50-
micromamba-version: '2.0.0-0'
51-
python-version: ${{ matrix.python-version }}
52-
channels: conda-forge
53-
channel-priority: flexible
54-
init-shell: >-
55-
bash
56-
activate-environment: test-environment
57-
58-
- name: Install dependencies
59-
env:
60-
PACKAGES: ${{env.MINIMAL_DEPENDENCIES}} ${{env.OPTIONAL_DEPENDENCIES}} ${{env.TEST_DEPENDENCIES}}
61-
PYRAD_TESTS_PATH: ${{github.workspace}}/pyrad-tests/
62-
run: |
63-
conda install --quiet ${{env.PACKAGES}}
64-
pip install wradlib
6555
- name: Install pyart
6656
working-directory: ${{github.workspace}}/pyart/
6757
run: python -m pip install .

.github/workflows/pyrad_tests_mch.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,19 @@ jobs:
3737
with:
3838
submodules: recursive
3939
ref : master
40+
# Install dependencies
41+
- name: Setup Conda Environment
42+
uses: mamba-org/setup-micromamba@v1
43+
with:
44+
environment-file: ci/environment-ci.yml
45+
activate-environment: pyrad-dev
46+
cache-downloads: true
47+
python-version: ${{ matrix.python-version }}
4048
- name: Clone pyrad-tests
4149
uses: actions/checkout@main
4250
with:
4351
repository: MeteoSwiss/pyrad-tests
4452
path: pyrad-tests
45-
- name: Setup Miniconda
46-
uses: conda-incubator/setup-miniconda@v2.0.0
47-
with:
48-
auto-update-conda: true
49-
python-version: ${{ matrix.python-version }}
50-
channels: conda-forge
51-
channel-priority: flexible
52-
activate-environment: test-environment
53-
54-
- name: Install dependencies
55-
env:
56-
PACKAGES: ${{env.MINIMAL_DEPENDENCIES}} ${{env.OPTIONAL_DEPENDENCIES}} ${{env.TEST_DEPENDENCIES}}
57-
PYRAD_TESTS_PATH: ${{github.workspace}}/pyrad-tests/
58-
run: |
59-
conda install -c conda-forge ${{env.PACKAGES}}
60-
pip install wradlib
6153
- name: Install pyart
6254
if: matrix.os != 'macos-latest'
6355
working-directory: ${{github.workspace}}/src/pyart/

ci/parse_pyrad_processes.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# %%
21
from pathlib import Path
32
import inspect
43
import re
@@ -44,8 +43,6 @@ def dict_to_restructured_text(yaml_data):
4443
for ele in value3:
4544
rst_output.append(' | ' + ele)
4645
rst_output.append('')
47-
rst_output.append('returns')
48-
rst_output.append(' ' + value2['returns'] +'\n')
4946
# rst_output.append(f"\n\n{value2['parameters']}\n\n")
5047
return '\n'.join(rst_output)
5148

@@ -111,7 +108,7 @@ def process_docstring(docstr):
111108
returns_dict[header] = list(returns.strip().split('\n'))[1:]
112109
dic = {'description': " ".join(description.split()),
113110
'parameters': parse_string_to_dict(attributes),
114-
'returns': returns.strip()}
111+
'returns': returns_dict}
115112
return dic
116113

117114

@@ -146,6 +143,3 @@ def process_docstring(docstr):
146143
fname = Path(OUT_DIRECTORY, 'list_process.rst')
147144
with open(fname, 'w') as f:
148145
f.write(rst_content)
149-
150-
151-
# %%

0 commit comments

Comments
 (0)