Skip to content

Commit

Permalink
updated pylbo docs
Browse files Browse the repository at this point in the history
  • Loading branch information
n-claes committed Apr 17, 2023
1 parent 3f1e720 commit 5a78e97
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions docs/pylbo/legolas_interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ classes: wide
sidebar:
nav: "leftcontents"
toc: true
toc_icon: "chevron-circle-down"
last_modified_at: 2021-04-13
---
{% capture tip %}
Expand Down
11 changes: 6 additions & 5 deletions docs/pylbo/using_pylbo.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ classes: wide
sidebar:
nav: "leftcontents"
toc: true
toc_label: "Pylbo guide contents"
toc_icon: "laptop-code"
last_modified_at: 2021-07-27
toc_icon: "chevron-circle-down"
last_modified_at: 2023-04-13
---

Using Pylbo is quite straightforward, for a detailed guide on the API we refer to the
Expand Down Expand Up @@ -101,8 +100,10 @@ Below is a detailed overview of the various commands:
| _down arrow_ | Cycles to the previous variable in the list. |
| _d_ | Clears current selection. |
| _t_ | Retransforms the eigenfunctions using the scale factor, hence has no effect if `geometry = "Cartesian"`. You can use this to cycle between the $rv_r$ and $v_r$ eigenfunctions in cylindrical geometry, for example. |
| _w_ | prints out the currently selected eigenvalues to the console. This may come in handy if you want to copy the exact values somewhere, to extract eigenfunctions for example. |
| _e_ | toggles a visualisation of the subset of eigenvalues that have their eigenfunctions saved, has no effect if `write_eigenfunction_subset` was set to `.false.`. |
| _w_ | Prints out the currently selected eigenvalues to the console. This may come in handy if you want to copy the exact values somewhere, to extract eigenfunctions for example. |
| _n_ | Counts and prints out the number of zeroes in the selected eigenfunctions, along with the corresponding eigenvalues. |
| _j_ | Saves the indices of all selected eigenvalues as an array in a `.npy` file, which can be loaded using the `numpy.load` function. |
| _e_ | Toggles a visualisation of the subset of eigenvalues that have their eigenfunctions saved, has no effect if `write_eigenfunction_subset` was set to `.false.`. |

#### Retrieving eigenvalues & eigenfunctions
You can manually retrieve the eigenfunctions from the dataset as well. You can either supply the eigenvalue indices (based on the interactive legend on the eigenfunction panel),
Expand Down
6 changes: 3 additions & 3 deletions docs/testing/about_tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ classes: wide
sidebar:
nav: "leftcontents"
toc: true
toc_icon: "laptop-code"
last_modified_at: 2021-07-27
toc_icon: "chevron-circle-down"
last_modified_at: 2023-04-13
---

This page gives a detailed overview on the various Legolas testing suites, how to run them and what they are testing.
Expand Down Expand Up @@ -235,7 +235,7 @@ To run the Pylbo unit tests you also need pytest, along with the [`timeout`](htt
```bash
pip install pytest-timeout
```
Then, ro tun the tests navigate to the `tests` folder, down one level to the Pylbo unit tests and run
Then, ro tun the tests navigate to the `tests/pylbo_tests` folder and run
```bash
pytest -v
```

0 comments on commit 5a78e97

Please sign in to comment.