Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
riemarc authored May 9, 2023
1 parent a491ab6 commit 5d1a456
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ To start a process a so-called job has to be set up. A job consists of a Python
function and a configuration. The function contains the code (machine learning,
simulation, ....) to be executed,
for [example](juts/examples/minimal_example.ipynb):

```
import time as tim
def wait_n_times_x_ms(config, process_queue=None, return_dict=None):
Expand All @@ -31,7 +32,9 @@ def wait_n_times_x_ms(config, process_queue=None, return_dict=None):
time_series=i/x))
tim.sleep(x)
```

The configuration(s) can be read from a yaml file like [this](juts/examples/wait_n_times_x_ms.yml):

```
wait_40_times_100_ms:
parameter:
Expand All @@ -43,6 +46,7 @@ wait_10_times_300_ms:
n: 10
x: 0.3
```

or can be defined as python dictionary.

[Screencast min example.webm](https://github.com/riemarc/juts/assets/18379817/0fa83a34-cefd-4f1e-99e9-49642ab31963)
Expand Down

0 comments on commit 5d1a456

Please sign in to comment.