Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
waltsims committed Jan 4, 2024
1 parent e5546ac commit b01ac3f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions examples/at_array_as_source/at_array_as_source.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,29 @@
},
"outputs": [],
"source": [
" # create empty array\n",
" karray = kWaveArray()\n",
"# create empty array\n",
"karray = kWaveArray()\n",
"\n",
" # define arc properties\n",
" radius = 50e-3 # [m]\n",
" diameter = 30e-3 # [m]\n",
" focus_pos = [-20e-3, 0] # [m]\n",
"# define arc properties\n",
"radius = 50e-3 # [m]\n",
"diameter = 30e-3 # [m]\n",
"focus_pos = [-20e-3, 0] # [m]\n",
"\n",
" # add arc-shaped element\n",
" elem_pos = [10e-3, -40e-3] # [m]\n",
" karray.add_arc_element(elem_pos, radius, diameter, focus_pos)\n",
"# add arc-shaped element\n",
"elem_pos = [10e-3, -40e-3] # [m]\n",
"karray.add_arc_element(elem_pos, radius, diameter, focus_pos)\n",
"\n",
" # add arc-shaped element\n",
" elem_pos = [20e-3, 0] # [m]\n",
" karray.add_arc_element(elem_pos, radius, diameter, focus_pos)\n",
"# add arc-shaped element\n",
"elem_pos = [20e-3, 0] # [m]\n",
"karray.add_arc_element(elem_pos, radius, diameter, focus_pos)\n",
"\n",
" # add arc-shaped element\n",
" elem_pos = [10e-3, 40e-3] # [m]\n",
" karray.add_arc_element(elem_pos, radius, diameter, focus_pos)\n",
"# add arc-shaped element\n",
"elem_pos = [10e-3, 40e-3] # [m]\n",
"karray.add_arc_element(elem_pos, radius, diameter, focus_pos)\n",
"\n",
" # move the array down 10 mm, and rotate by 10 degrees (this moves all the\n",
" # elements together)\n",
" karray.set_array_position([10e-3, 0], 10)\n"
"# move the array down 10 mm, and rotate by 10 degrees (this moves all the\n",
"# elements together)\n",
"karray.set_array_position([10e-3, 0], 10)\n"
]
},
{
Expand Down

0 comments on commit b01ac3f

Please sign in to comment.