Skip to content

Commit

Permalink
examples: Update tutorial with dt.data
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Jul 7, 2023
1 parent 08f42df commit c56c36a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/seismic/tutorials/14_tti_qp_pure.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@
"source": [
"# NBVAL_IGNORE_OUTPUT \n",
"\n",
"shape = (101,101) # 101x101 grid\n",
"spacing = (10.,10.) # spacing of 10 meters\n",
"origin = (0.,0.) \n",
"nbl = 0 # number of pad points\n",
"shape = (101, 101) # 101x101 grid\n",
"spacing = (10., 10.) # spacing of 10 meters\n",
"origin = (0., 0.) \n",
"nbl = 0 # number of pad boundary layers\n",
"\n",
"model = demo_model('layers-tti', spacing=spacing, space_order=8,\n",
" shape=shape, nbl=nbl, nlayers=1)\n",
Expand Down Expand Up @@ -178,7 +178,7 @@
"t0 = 0. # Simulation time start\n",
"tn = 150. # Simulation time end (0.15 second = 150 msec)\n",
"dt = (dvalue/(np.pi*vmax))*np.sqrt(1/(1+etamax*(max_cos_sin)**2)) # eq. above (cell 3)\n",
"time_range = TimeAxis(start=t0,stop=tn,step=dt)\n",
"time_range = TimeAxis(start=t0,stop=tn,step=dt.data[()])\n",
"print(\"time_range; \", time_range)"
]
},
Expand Down

0 comments on commit c56c36a

Please sign in to comment.