added directory creation

This commit is contained in:
Abyss Halley 2025-08-22 13:16:34 -04:00
parent 0ec67017ee
commit 1f0b6ba5ef

View file

@ -327,6 +327,8 @@ def compute_snr_from_h5(h5_file, detrend_ft=True, mad_filter=True, save=False, s
#%%
for pulsar_dir in pulsar_dir_list:
save_path = os.path.join(pulsar_dir, "calib-pngs", "")
if not os.path.exists(save_path):
os.makedirs(save_path)
h5_dir = os.path.join(pulsar_dir,"cands","")
print(h5_dir)
h5_files = sorted(glob.glob(f"{h5_dir}*.h5"))