Skip to content
Snippets Groups Projects
Unverified Commit 8d5747da authored by Benedikt Burger's avatar Benedikt Burger
Browse files

Fix example in readme

parent a8a63327
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,7 @@ from snlohelper.main_window import MainWindow
mw = MainWindow()
mix = mw.open_two_d_mix_lp()
mix.configure({"Wavelengths (nm)": [1064.5, None, None]})
mix.accept()
result = mix.run_and_read()
print(result)
```
......@@ -57,6 +58,7 @@ For more examples see the `examples` folder.
* For several functions exists a module containing a class, which in turn allows to configure the function, to run the calculation, and to extract the result.
1. You start that class, for example `mix = two_d_mix_lp.TwoDMixLp()` or `mix = MainWindow().open_function("2D-Mix-LP")`.
2. You can configure it giving a configuration dictionary (the keys correspond to the names) with `mix.configure({"Wavelengths": [1064, None, None]})`. If a value is `None`, it won't be changed.
3. Click accept with `mix.accept()`
3. You can run it with `mix.run()`
4. With `results = mix.read_results()` you can extract the resulting text.
5. With `result_dict = mix.interpret_results(results)` you get a dictionary of the result data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment