Skip to content

Commit

Permalink
Fixing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NewtonSander committed Jul 31, 2023
1 parent 72d7198 commit 4d5b39e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions docs/usage/defining_sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import neurotechdevkit as ndk
import numpy as np

scenario = ndk.BUILTIN_SCENARIOS.SCENARIO_2_2D.value()
scenario.sources.clear()

source = ndk.sources.FocusedSource2D(
position=np.array([0.19, 0.07]),
Expand Down Expand Up @@ -50,6 +51,7 @@ import neurotechdevkit as ndk
import numpy as np

scenario = ndk.BUILTIN_SCENARIOS.SCENARIO_2_2D.value()
scenario.sources.clear()

source_position = np.array([0.19, 0.07])
source = ndk.sources.PlanarSource2D(
Expand Down
10 changes: 5 additions & 5 deletions docs/usage/loading_scenarios.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ scenario = ndk.BUILTIN_SCENARIOS.SCENARIO_2_2D.value()

The existing scenario ids are:

- `scenario-0` (2D) - a simple quickstart toy scenario that enables users to dive in and experiment with their first simulation immediately.
- `scenario-1-3d` (3D) - a scenario containing a flat 3-layer bone covered by skin, with water above the skin and brain below the bone. This is based on benchmark 4 of [Jean-Francois Aubry, et al.](https://doi.org/10.1121/10.0013426).
- `scenario-2-3d` (3D) - a scenario containing a full skull and brain mesh immersed in water. This is based on benchmark 8 of [Jean-Francois Aubry, et al.](https://doi.org/10.1121/10.0013426).
- `scenario-1-2d` (2D) - a 2D version of scenario 1.
- `scenario-2-2d` (2D) - a 2D version of scenario 2.
- `SCENARIO_0` (2D) - a simple quickstart toy scenario that enables users to dive in and experiment with their first simulation immediately.
- `SCENARIO_1_3D` (3D) - a scenario containing a flat 3-layer bone covered by skin, with water above the skin and brain below the bone. This is based on benchmark 4 of [Jean-Francois Aubry, et al.](https://doi.org/10.1121/10.0013426).
- `SCENARIO_2_3D` (3D) - a scenario containing a full skull and brain mesh immersed in water. This is based on benchmark 8 of [Jean-Francois Aubry, et al.](https://doi.org/10.1121/10.0013426).
- `SCENARIO_1_2D` (2D) - a 2D version of scenario 1.
- `SCENARIO_2_2D` (2D) - a 2D version of scenario 2.

All of these scenarios are immediately ready for visualization and simulation, with appropriate default parameters used where needed.

Expand Down
1 change: 1 addition & 0 deletions docs/usage/running_simulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Running a simulation takes just a single function call.
import neurotechdevkit as ndk

scenario = ndk.BUILTIN_SCENARIOS.SCENARIO_2_2D.value()
scenario.compile_problem(center_frequency=5e5)
result = scenario.simulate_steady_state()
result.render_steady_state_amplitudes()
```
Expand Down

0 comments on commit 4d5b39e

Please sign in to comment.