Skip to content

Commit

Permalink
Add --config parameter to the run-micro-manager.py execution command
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Oct 23, 2023
1 parent 3e027d0 commit 749cb0e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ To run the Python solverdummies, run the following commands in the `examples/` d

```bash
python macro_dummy.py
python python-dummy/run_micro_manager.py
python python-dummy/run_micro_manager.py --config micro-manager-config.json
```

Note that running `micro_manager micro-manager-config.json` from the terminal will not work, as the path in the configuration file is relative to the current working directory. See [#36](https://github.com/precice/micro-manager/issues/36) for more information.

To run the Python solverdummies with adaptivity run the following commands in the `examples/` directory in **two different terminals**:

```bash
python macro_dummy.py
python python-dummy/run_micro_manager.py --config micro-manager-adaptivity-config.json
```

## C++

The C++ solverdummies have to be compiled first using [`pybind11`](https://pybind11.readthedocs.io/en/stable/index.html). To do so, install `pybind11` using `pip`:
Expand Down Expand Up @@ -42,7 +49,14 @@ Then, run the following commands in the `examples/` directory, in **two differen

```bash
python macro_dummy.py
python cpp-dummy/run_micro_manager.py
python cpp-dummy/run_micro_manager.py --config micro-manager-config.json
```

To run the C++ solverdummies with adaptivity run the following commands in the `examples/` directory in **two different terminals**:

```bash
python macro_dummy.py
python cpp-dummy/run_micro_manager.py --config micro-manager-adaptivity-config.json
```

When changing the C++ solverdummy to your own solver, make sure to change the `PYBIND11_MODULE` in `micro_cpp_dummy.cpp` to the name that you want to compile to.
Expand Down

0 comments on commit 749cb0e

Please sign in to comment.