Skip to content

Commit

Permalink
Replaced deprecated function call
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcummins committed Mar 7, 2024
1 parent b81a246 commit ba108c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PINNs_NavierStokes_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1132,8 +1132,8 @@
"x_vort = data_vort['x'] \n",
"y_vort = data_vort['y'] \n",
"w_vort = data_vort['w'] \n",
"modes = np.asscalar(data_vort['modes'])\n",
"nel = np.asscalar(data_vort['nel']) \n",
"modes = np.ndarray.item(data_vort['modes'])\n",
"nel = np.ndarray.item(data_vort['nel']) \n",
"\n",
"xx_vort = np.reshape(x_vort, (modes+1,modes+1,nel), order = 'F')\n",
"yy_vort = np.reshape(y_vort, (modes+1,modes+1,nel), order = 'F')\n",
Expand Down

0 comments on commit ba108c3

Please sign in to comment.