Skip to content

Commit

Permalink
Update based on review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfufeng committed Oct 1, 2024
1 parent 9836416 commit 4b8a8ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/noisepy/monitoring/attenuation_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import math
import os
from typing import Tuple

import matplotlib.pyplot as plt
Expand Down Expand Up @@ -269,7 +270,6 @@ def windowing_SSR(
"""
Esyn_temp = np.zeros((npts // 2))
Eobs_temp = np.zeros((npts // 2))
PLOT_CHECK = False

npair = fmsv.shape[0]
window_SSR = 0.0
Expand Down Expand Up @@ -311,9 +311,10 @@ def windowing_SSR(
window_SSR += SSR_temp

if PLOT_CHECK:
os.system("mkdir figure_checking")
ax[0].legend(loc="upper right")
plt.tight_layout()
fname = f"figures/Scaled_density_ncoda{ncoda}_mfp{mean_free_path:.1f}_intb{intrinsic_b:.2f}.png"
fname = f"figure_checking/Scaled_density_ncoda{ncoda}_mfp{mean_free_path:.1f}_intb{intrinsic_b:.2f}.png"
plt.savefig(fname)
plt.close(fig)

Expand Down

0 comments on commit 4b8a8ed

Please sign in to comment.