Skip to content

Commit aa4780a

Browse files
committed
misc: Replace more triple quotes
1 parent 9fde3d8 commit aa4780a

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

examples/timestepping/acoustic_superstep_2d.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
''' Script that demonstrates the functionality of the superstep in 2D
1+
""" Script that demonstrates the functionality of the superstep in 2D
22
Acoustic wave equation with source injection
3-
'''
3+
"""
44
import shutil
55
import urllib.request
66
from argparse import ArgumentParser
@@ -79,10 +79,11 @@ def marmousi(grid, step=0):
7979

8080

8181
def ricker(t, f=10, A=1):
82-
'''The Ricker wavelet
82+
"""
83+
The Ricker wavelet
8384
f - freq in Hz
8485
A - amplitude
85-
'''
86+
"""
8687
trm = (np.pi * f * (t - 1 / f)) ** 2
8788
return A * (1 - 2 * trm) * np.exp(-trm)
8889

examples/timestepping/superstep_1d.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
''' Script that demonstrates the functionality of the superstep in 1D
1+
""" Script that demonstrates the functionality of the superstep in 1D
22
"Wave on a string"
3-
'''
3+
"""
44
import matplotlib.pyplot as plt
55
import numpy as np
66

@@ -25,8 +25,9 @@
2525

2626

2727
def gaussian(x, mu=0, sigma_sq=1):
28-
''' Generate a Gaussian initial condition
29-
'''
28+
"""
29+
Generate a Gaussian initial condition
30+
"""
3031
return np.exp(-((x - mu)**2)/(2*sigma_sq))/(np.sqrt(2*np.pi*sigma_sq))
3132

3233

0 commit comments

Comments
 (0)