Skip to content

Commit

Permalink
updated readme and requirements for incubator example
Browse files Browse the repository at this point in the history
  • Loading branch information
gitting-around committed Jul 4, 2023
1 parent d7da6c8 commit 504f09a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 9 additions & 4 deletions fi_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,20 @@ Note how the level in the tank increases in the FI case.
### The incubator example
This example applies FI to an [incubator](https://github.com/INTO-CPS-Association/example_digital-twin_incubator), and is adapted from the example used in the [tutorial for FM21](https://github.com/INTO-CPS-Association/fm_dt_tutorial_2021).

It is suggested to create a python virtual environment with python3.10, as there have been issues with the installation of ```wxPython```
on a Mac with a lower version.

```bash
$ python3.10 -m venv venv
$ source venv/bin/activate #activate the venv
```

Install dependencies:
```bash
$ apt-get install openjdk-17-jre
$ pip install -r requirements.txt
$ pip install -U wxPython
$ pip install -U -r requirements.txt
```

wxPython takes a looong time to build so be patient. If you're on Mac, and the build fails, try this [workaround](https://discuss.wxpython.org/t/failed-building-wheel-for-wxpython-macos-12-0-1/35700/4).

As in the water-tank two experiments, with and without FI are run:

```bash
Expand Down
3 changes: 2 additions & 1 deletion fi_example/incubator_example/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ protobuf==3.20.1
zmq
google-api-python-client
sympy
wheel
wheel
wxPython

0 comments on commit 504f09a

Please sign in to comment.