File tree Expand file tree Collapse file tree 3 files changed +17
-41
lines changed Expand file tree Collapse file tree 3 files changed +17
-41
lines changed Original file line number Diff line number Diff line change 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 :
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 .
Original file line number Diff line number Diff 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/
Original file line number Diff line number Diff line change 1- # %%
21from pathlib import Path
32import inspect
43import 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):
146143fname = Path (OUT_DIRECTORY , 'list_process.rst' )
147144with open (fname , 'w' ) as f :
148145 f .write (rst_content )
149-
150-
151- # %%
You can’t perform that action at this time.
0 commit comments