Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.5.0 #126

Merged
merged 42 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
acc3899
Fix typo, remove redundent code and replace __import__ (#90)
tjwsch Mar 30, 2024
824028b
Fixes by pre-commit
IshaanDesai Apr 1, 2024
7ce6b34
Fix initialize() call of MicroSimulation class when adaptivity is off…
IshaanDesai Apr 2, 2024
2ea70e3
Fix doc image prefix (#94)
fsimonis Apr 10, 2024
fa0e9ce
Update GitHub Actions workflow files
IshaanDesai Apr 10, 2024
cad224b
Add .html pattern to ignore in markdown link check
IshaanDesai Apr 10, 2024
a564c36
Files changes due to pre-commit run
IshaanDesai Apr 10, 2024
6b721ec
Formatting
IshaanDesai Apr 10, 2024
e6641ba
Add switch to turn adaptivity on and off in configuration (#93)
IshaanDesai Apr 10, 2024
03a6d18
Update CHANGELOG
IshaanDesai Apr 10, 2024
5d118d9
TBD: Follow time stepping proposed in documentation (#96)
BenjaminRodenberg Apr 23, 2024
407809c
Handle crashing micro simulations (#85)
tjwsch May 3, 2024
d9d6d23
Update CHANGELOG
tjwsch May 13, 2024
15ccc6b
Add pyproject.toml (#84)
IshaanDesai May 16, 2024
cf87204
Optionally use initial macro data to initialize micro simulations (#104)
IshaanDesai May 17, 2024
871d090
Update CHANGELOG
IshaanDesai May 17, 2024
5249532
Remove www prefix from precice.org
fsimonis May 21, 2024
2f7e7ba
A collection of restructuring and minor updates (#105)
IshaanDesai May 21, 2024
1696ff6
Add documentation for handling of crashing micro simulations (#106)
tjwsch May 22, 2024
554eab3
Tell checkout Action to fetch tags, as they are necessary to determin…
IshaanDesai May 23, 2024
0befa33
Instead of setting fetch-tags: true, set fetch-depth: 0 in the checko…
IshaanDesai May 23, 2024
7312865
Revert to using checkout Action v2 in the publishing CI
IshaanDesai May 23, 2024
79a7f54
Change publishing workflow to get it to work for automatic version pi…
IshaanDesai May 23, 2024
f50f748
Check if initial data returned from the micro simulation is the data …
IshaanDesai May 28, 2024
a4a8e77
Handle the case where micro simulations written in C++ have the `init…
IshaanDesai Jun 3, 2024
18fbdec
Add base class for Micro Manager and restructure main (#111)
tjwsch Jun 6, 2024
0202253
Rework comment
IshaanDesai Jun 10, 2024
26dd92d
Set micro simulation dt in the configuration (#112)
IshaanDesai Jun 11, 2024
f1eac57
Update required pyprecice version in the dependencies list
IshaanDesai Jul 9, 2024
29f93aa
Move micro_dt from coupling parameters to simulation parameters in th…
IshaanDesai Jul 9, 2024
6fafea2
Make interpolation after crash optional (#113)
tjwsch Jul 11, 2024
391969d
Snapshot computation (#101)
tjwsch Jul 25, 2024
32fd930
Explicitly check if the time window has completed (#118)
IshaanDesai Jul 30, 2024
d66c000
Add snapshot computation docs and improve micro manager docs (#116)
tjwsch Aug 8, 2024
89f6a63
Snapshot: Add possibility to have only one micro simulation object (#…
tjwsch Aug 13, 2024
762563e
Use correct quotes in configuration of crash interpolation
IshaanDesai Aug 13, 2024
f8de70a
Merge branch 'develop' of github.com:precice/micro-manager into develop
IshaanDesai Aug 13, 2024
ac44d06
Update installation docs
tjwsch Aug 13, 2024
9c16bfb
Add micro input to crash message output (#124)
tjwsch Aug 13, 2024
490ae43
Use absolute values to calculate normalizing factor for relative norm…
IshaanDesai Aug 14, 2024
fd20cd1
Update version bumping instruction in the release guide
IshaanDesai Aug 16, 2024
98d2485
Bump version
IshaanDesai Aug 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- Add a short description of your contribution here. Skip this if the title is self-explanatory -->

Checklist:

- [ ] I made sure that the CI passed before I ask for a review.
- [ ] I added a summary of the changes (compared to the last release) in the `CHANGELOG.md`.
- [ ] If necessary, I made changes to the documentation and/or added new content.
- [ ] I will remember to squash-and-merge, providing a useful summary of the changes of this PR.
14 changes: 0 additions & 14 deletions .github/workflows/check-links.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/check-markdown.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/check-pep8.yml

This file was deleted.

10 changes: 6 additions & 4 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ jobs:
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
uses: BSFishy/pip-action@v1
with:
packages: |
twine
build
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist
pyproject-build
twine upload dist/*
27 changes: 12 additions & 15 deletions .github/workflows/run-adaptivity-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:
pull_request:
branches:
- "*"
jobs:
jobs:
adaptivity_integration_tests:
name: Run adaptivity integration tests
runs-on: ubuntu-latest
container: precice/precice:nightly
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: micro-manager

Expand All @@ -23,34 +23,33 @@ jobs:
run: |
apt-get -qq update
apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config
python -m pip install --upgrade pip
pip install setuptools wheel
pip3 install --upgrade pip

- name: Install Micro Manager
working-directory: micro-manager
run: pip3 install --user .
run: pip3 install .

- name: Run integration test with local adaptivity
timeout-minutes: 3
working-directory: micro-manager/tests/integration/test_unit_cube
run: |
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
python3 unit_cube.py & python3 run_micro_manager.py --config micro-manager-config-local-adaptivity.json
micro-manager-precice micro-manager-config-local-adaptivity.json &
python3 unit_cube.py

- name: Run integration test with global adaptivity
timeout-minutes: 3
working-directory: micro-manager/tests/integration/test_unit_cube
run: |
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
python3 unit_cube.py & python3 run_micro_manager.py --config micro-manager-config-global-adaptivity.json
micro-manager-precice micro-manager-config-global-adaptivity.json &
python3 unit_cube.py

adaptivity_unit_tests_serial:
name: Run adaptivity unit tests in serial
runs-on: ubuntu-latest
container: precice/precice:nightly
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: micro-manager

Expand All @@ -59,8 +58,7 @@ jobs:
run: |
apt-get -qq update
apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config
python -m pip install --upgrade pip
pip install setuptools wheel
pip3 install --upgrade pip

- name: Install Micro Manager
working-directory: micro-manager
Expand All @@ -76,7 +74,7 @@ jobs:
container: precice/precice:nightly
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: micro-manager

Expand All @@ -94,8 +92,7 @@ jobs:
run: |
apt-get -qq update
apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip3 install --upgrade pip

- name: Install Micro Manager
working-directory: micro-manager
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/run-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Run checks for markdown, links, and pre-commit
on:
push:
branches:
- main
- develop
pull_request:
branches:
- "*"
jobs:
check_md:
name: Lint markdown files
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Lint markdown files (markdownlint)
uses: articulate/actions-markdownlint@v1
with:
config: .markdownlint.json
files: '.'

check_links:
name: Check links in markdown files
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Check links in markdown files (markdown-link-check)
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'no'
config-file: '.markdown-link-check-config.json'

precommit:
name: pre-commit checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
check-latest: true
- name: Install pre-commit
run: pip install pre-commit
- name: Run checks
run: pre-commit run -a -v
- name: Git status
if: always()
run: git status
- name: Full diff
if: always()
run: git diff
29 changes: 16 additions & 13 deletions .github/workflows/run-domain-decomposition-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:
pull_request:
branches:
- "*"
jobs:
jobs:
domain_decomposition_integration_tests:
name: Run domain decomposition integration tests
runs-on: ubuntu-latest
container: precice/precice:nightly
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: micro-manager

Expand All @@ -30,31 +30,35 @@ jobs:
- name: Install Dependencies
working-directory: micro-manager
run: |
apt-get -qq update
apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip3 install --upgrade pip

- name: Install micro-manager
working-directory: micro-manager
run: pip3 install --user .
run: pip3 install .

- name: Run integration test (variant 1)
- name: Run integration test (2 processes)
timeout-minutes: 3
working-directory: micro-manager/tests/integration/test_unit_cube
run: mpiexec -n 2 --allow-run-as-root python3 run_micro_manager.py --config micro-manager-config-parallel-1.json & python3 unit_cube.py

- name: Run integration test (variant 2)
run: |
mpiexec -n 2 --allow-run-as-root micro-manager-precice micro-manager-config-parallel-1.json &
python3 unit_cube.py

- name: Run integration test (6 processes)
timeout-minutes: 3
working-directory: micro-manager/tests/integration/test_unit_cube
run: mpiexec -n 6 --oversubscribe --allow-run-as-root python3 run_micro_manager.py --config micro-manager-config-parallel-2.json & python3 unit_cube.py
run: |
mpiexec -n 6 --oversubscribe --allow-run-as-root micro-manager-precice micro-manager-config-parallel-2.json &
python3 unit_cube.py

domain_decomposition_unit_tests:
name: Run domain decomposition unit tests
runs-on: ubuntu-latest
container: precice/precice:nightly
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: micro-manager

Expand All @@ -63,8 +67,7 @@ jobs:
run: |
apt-get -qq update
apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config
python -m pip install --upgrade pip
pip install setuptools wheel
pip3 install --upgrade pip

- name: Install Micro Manager
working-directory: micro-manager
Expand Down
25 changes: 16 additions & 9 deletions .github/workflows/run-macro-micro-dummy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
pull_request:
branches:
- "*"
jobs:
jobs:
run_dummy:
name: Run dummy
runs-on: ubuntu-latest
container: precice/precice:nightly
steps:

- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: micro-manager

Expand All @@ -25,22 +25,26 @@ jobs:
apt-get -qq update
apt-get -qq install python3-dev python3-pip git python-is-python3 pkg-config
apt-get -qq install sudo
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip3 install --upgrade pip

- name: Install micro-manager
working-directory: micro-manager
run: pip3 install --user .
run: |
pip3 install .

- name: Run python macro-micro dummy
timeout-minutes: 3
working-directory: micro-manager/examples
run: python3 python-dummy/run_micro_manager.py --config micro-manager-config.json & python3 macro_dummy.py
run: |
micro-manager-precice micro-manager-python-config.json &
python3 macro_dummy.py

- name: Run adaptive python macro-micro dummy
timeout-minutes: 3
working-directory: micro-manager/examples
run: python3 python-dummy/run_micro_manager.py --config micro-manager-adaptivity-config.json & python3 macro_dummy.py
run: |
micro-manager-precice micro-manager-python-adaptivity-config.json &
python3 macro_dummy.py

- name: Run c++ macro-micro dummy
timeout-minutes: 3
Expand All @@ -50,9 +54,12 @@ jobs:
pip install pybind11
c++ -O3 -Wall -shared -std=c++11 -fPIC $(python3 -m pybind11 --includes) micro_cpp_dummy.cpp -o micro_dummy$(python3-config --extension-suffix)
cd ../
python3 cpp-dummy/run_micro_manager.py --config micro-manager-config.json & python3 macro_dummy.py
micro-manager-precice micro-manager-cpp-config.json &
python3 macro_dummy.py

- name: Run adaptive c++ macro-micro dummy
timeout-minutes: 3
working-directory: micro-manager/examples
run: python3 cpp-dummy/run_micro_manager.py --config micro-manager-adaptivity-config.json & python3 macro_dummy.py
run: |
micro-manager-precice micro-manager-cpp-adaptivity-config.json &
python3 macro_dummy.py
Loading