Skip to content

Commit 6fba0af

Browse files
committed
BHaH_psi4_to_phase_amp_omega_FFI_strain_psi4check.py: sync with latest black
1 parent dfd674b commit 6fba0af

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

BHaH_psi4_to_phase_amp_omega_FFI_strain_psi4check.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
Author: Zachariah B. Etienne
1111
zachetie **at** gmail **dot* com
1212
"""
13+
1314
import sys
1415
from typing import Tuple, Dict
1516

@@ -137,9 +138,7 @@ def compute_second_derivative_in_time(
137138
second_derivative[1:-1] = (data[:-2] - 2 * data[1:-1] + data[2:]) / (dt**2)
138139

139140
# Endpoint 0: forward finite difference (downwind)
140-
second_derivative[0] = (2 * data[0] - 5 * data[1] + 4 * data[2] - data[3]) / (
141-
dt**2
142-
)
141+
second_derivative[0] = (2 * data[0] - 5 * data[1] + 4 * data[2] - data[3]) / (dt**2)
143142

144143
# Endpoint n-1: backward finite difference (upwind)
145144
second_derivative[-1] = (2 * data[-1] - 5 * data[-2] + 4 * data[-3] - data[-4]) / (
@@ -341,7 +340,9 @@ def main() -> None:
341340
and r/M value are provided via the command line.
342341
"""
343342
if len(sys.argv) != 2:
344-
print("Usage: python3 BHaH_psi4_to_phase_amp_omega_FFI_strain_psi4check.py <extraction radius (r/M)>")
343+
print(
344+
"Usage: python3 BHaH_psi4_to_phase_amp_omega_FFI_strain_psi4check.py <extraction radius (r/M)>"
345+
)
345346
sys.exit()
346347
extraction_radius = float(sys.argv[1])
347348
generic_file_name = construct_generic_filename(extraction_radius)

0 commit comments

Comments
 (0)