Skip to content

Commit 3c19238

Browse files
committed
misc: Very important linebreaks must be preserved
1 parent 42f2dee commit 3c19238

4 files changed

Lines changed: 10 additions & 17 deletions

File tree

examples/seismic/tutorials/06_elastic_varying_parameters.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,9 +1686,13 @@
16861686
"$\\displaystyle \\left(- \\frac{f(x - h_x, y - h_y)}{4 h_{x}} + \\frac{f(x + h_x, y + h_y)}{4 h_{x}}\\right) + \\left(- \\frac{f(x - h_x, y + h_y)}{4 h_{x}} + \\frac{f(x + h_x, y - h_y)}{4 h_{x}}\\right)$"
16871687
],
16881688
"text/plain": [
1689-
" f(x - hₓ, y - h_y) f(x + hₓ, y + h_y) f(x - hₓ, y + h_y) f(x + hₓ, y - h_y)\n",
1690-
"- ────────────────── + ────────────────── + - ────────────────── + ──────────────────\n",
1691-
" 4⋅hₓ 4⋅hₓ 4⋅hₓ 4⋅hₓ "
1689+
" f(x - hₓ, y - h_y) f(x + hₓ, y + h_y) f(x - hₓ, y + h_y) f(x + hₓ, y ↪\n",
1690+
"- ────────────────── + ────────────────── + - ────────────────── + ─────────── ↪\n",
1691+
" 4⋅hₓ 4⋅hₓ 4⋅hₓ 4⋅hₓ ↪\n",
1692+
"\n",
1693+
"↪ - h_y)\n",
1694+
"↪ ───────\n",
1695+
"↪ "
16921696
]
16931697
},
16941698
"execution_count": 30,

examples/seismic/tutorials/09_viscoelastic.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@
353353
{
354354
"data": {
355355
"text/plain": [
356-
"np.int64(0)"
356+
"0"
357357
]
358358
},
359359
"execution_count": 13,

examples/seismic/tutorials/12_time_blocking.ipynb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,18 +1725,7 @@
17251725
"name": "stdout",
17261726
"output_type": "stream",
17271727
"text": [
1728-
"Relative norm of difference wavefield,gradient; +7.1125e-07 +3.3687e-07\n"
1729-
]
1730-
},
1731-
{
1732-
"ename": "AssertionError",
1733-
"evalue": "",
1734-
"output_type": "error",
1735-
"traceback": [
1736-
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
1737-
"\u001b[0;31mAssertionError\u001b[0m Traceback (most recent call last)",
1738-
"Cell \u001b[0;32mIn[19], line 12\u001b[0m\n\u001b[1;32m 7\u001b[0m norm_dm12 \u001b[38;5;241m=\u001b[39m np\u001b[38;5;241m.\u001b[39mlinalg\u001b[38;5;241m.\u001b[39mnorm(dm1\u001b[38;5;241m.\u001b[39mdata\u001b[38;5;241m.\u001b[39mreshape(\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m1\u001b[39m) \u001b[38;5;241m-\u001b[39m dm2\u001b[38;5;241m.\u001b[39mdata\u001b[38;5;241m.\u001b[39mreshape(\u001b[38;5;241m-\u001b[39m\u001b[38;5;241m1\u001b[39m))\n\u001b[1;32m 9\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mRelative norm of difference wavefield,gradient; \u001b[39m\u001b[38;5;132;01m%+.4e\u001b[39;00m\u001b[38;5;124m \u001b[39m\u001b[38;5;132;01m%+.4e\u001b[39;00m\u001b[38;5;124m\"\u001b[39m \u001b[38;5;241m%\u001b[39m \n\u001b[1;32m 10\u001b[0m (norm_du12 \u001b[38;5;241m/\u001b[39m norm_du1, norm_dm12 \u001b[38;5;241m/\u001b[39mnorm_dm1))\n\u001b[0;32m---> 12\u001b[0m \u001b[38;5;28;01massert\u001b[39;00m norm_du12 \u001b[38;5;241m/\u001b[39m norm_du1 \u001b[38;5;241m<\u001b[39m \u001b[38;5;241m1e-7\u001b[39m\n\u001b[1;32m 13\u001b[0m \u001b[38;5;28;01massert\u001b[39;00m norm_dm12 \u001b[38;5;241m/\u001b[39m norm_dm1 \u001b[38;5;241m<\u001b[39m \u001b[38;5;241m1e-7\u001b[39m\n",
1739-
"\u001b[0;31mAssertionError\u001b[0m: "
1728+
"Relative norm of difference wavefield,gradient; +0.0000e+00 +0.0000e+00\n"
17401729
]
17411730
}
17421731
],

examples/userapi/01_dsl.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{
4545
"data": {
4646
"text/plain": [
47-
"Grid[extent=(np.float32(1.0), np.float32(1.0)), shape=(5, 6), dimensions=(x, y)]"
47+
"Grid[extent=(1.0, 1.0), shape=(5, 6), dimensions=(x, y)]"
4848
]
4949
},
5050
"execution_count": 2,

0 commit comments

Comments
 (0)