Skip to content

Commit d2d5712

Browse files
authored
Merge branch 'main' into polar-coords
2 parents 7405339 + 314d69f commit d2d5712

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+404
-305
lines changed

.coveragerc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[paths]
2+
# files installed in */site-packages/pyro/ are equivalent to those in pyro/
3+
source =
4+
pyro
5+
*/site-packages/pyro
6+
7+
[run]
8+
source = pyro
9+
# measure the source files from the installed pyro package
10+
source_pkgs = pyro
11+
12+
[report]
13+
# don't include the test files themselves
14+
omit =
15+
*/tests/*
16+
pyro/test.py

.github/workflows/docs-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: pip install -r ./requirements.txt
3939

4040
- name: Install pyro
41-
run: python setup.py install
41+
run: pip install .
4242

4343
- name: Build docs
4444
run: |

.github/workflows/flake8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
pip install flake8
3939
4040
- name: Install pyro
41-
run: python setup.py install --user
41+
run: pip install .
4242

4343
- name: Run flake8
4444
run: flake8 pyro

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: pip install -r ./requirements.txt
3535

3636
- name: Install pyro
37-
run: python setup.py install
37+
run: pip install .
3838

3939
- name: Build docs
4040
run: ./deploy_docs_action.sh
@@ -44,4 +44,4 @@ jobs:
4444
with:
4545
github_token: ${{ secrets.GITHUB_TOKEN }}
4646
publish_dir: ./out
47-
keep_files: true
47+
keep_files: true

.github/workflows/isort.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
pip install isort
3939
4040
- name: Install pyro
41-
run: python setup.py install --user
41+
run: pip install .
4242

4343
- name: Validate
44-
run: isort -c pyro
44+
run: isort --check --diff pyro
4545

.github/workflows/pylint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
pip install pylint
3939
4040
- name: Install pyro
41-
run: python setup.py install --user
41+
run: pip install .
4242

4343
- name: Validate
4444
run: pylint --errors-only pyro pyro/analysis

.github/workflows/pytest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
pip install -r requirements.txt
4242
4343
- name: Install pyro
44-
run: python setup.py install --user
44+
run: pip install .
4545

4646
- name: Run tests with pytest
47-
run: pytest -v --cov=. --cov-config .coveragerc --nbval --ignore=docs --ignore=./pyro/multigrid/variable_coeff_elliptic.ipynb --ignore=examples/mesh --ignore=examples/multigrid --ignore=presentations
47+
run: pytest -v --cov=pyro --nbval --ignore=docs --ignore=./pyro/multigrid/variable_coeff_elliptic.ipynb --ignore=examples/mesh --ignore=examples/multigrid --ignore=presentations

.github/workflows/regtest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
pip install -r requirements.txt
4242
4343
- name: Install pyro
44-
run: python setup.py install --user
44+
run: pip install .
4545

4646
- name: Run tests via test.py
47-
run: ./pyro/test.py
47+
run: ./pyro/test.py --nproc 0
4848

docs/source/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@
137137
]
138138
}
139139

140+
linkcheck_ignore = [r"https://ascelibrary.org",
141+
r"https://doi.org/10.1061/(ASCE)0733-9429(1999)125:11(1210)"]
142+
140143

141144
# -- Options for HTMLHelp output ------------------------------------------
142145

docs/source/incompressible_basics.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,18 @@ shown below are run as:
6262
pyro_sim.py incompressible converge inputs.converge.128 vis.dovis=0
6363

6464
The error is measured by comparing with the analytic solution using
65-
the routine ``incomp_converge_error.py`` in ``analysis/``.
65+
the routine ``incomp_converge_error.py`` in ``analysis/``. To generate
66+
the plot below, run
67+
68+
.. prompt:: bash
69+
70+
python incompressible/tests/convergence_errors.py convergence_errors.txt
71+
72+
or ``convergence_errors_no_limiter.txt`` after running with that option. Then:
73+
74+
.. prompt:: bash
75+
76+
python incompressible/tests/convergence_plot.py
6677

6778
.. image:: incomp_converge.png
6879
:align: center

0 commit comments

Comments
 (0)