readded try-except
This commit is contained in:
parent
1f0b6ba5ef
commit
31be71c5ae
|
@ -336,7 +336,7 @@ for pulsar_dir in pulsar_dir_list:
|
||||||
results = []
|
results = []
|
||||||
|
|
||||||
for filepath in h5_files:
|
for filepath in h5_files:
|
||||||
#try:
|
try:
|
||||||
fluxes_mjy, flux_stds, widths_t, peak_mjds, time_peaks, time_pulse, dm = compute_snr_from_h5(filepath,
|
fluxes_mjy, flux_stds, widths_t, peak_mjds, time_peaks, time_pulse, dm = compute_snr_from_h5(filepath,
|
||||||
detrend_ft=True,
|
detrend_ft=True,
|
||||||
mad_filter=True,
|
mad_filter=True,
|
||||||
|
@ -355,8 +355,8 @@ for pulsar_dir in pulsar_dir_list:
|
||||||
"dm": dm,
|
"dm": dm,
|
||||||
"filename": os.path.basename(filepath)
|
"filename": os.path.basename(filepath)
|
||||||
})
|
})
|
||||||
#except Exception as e:
|
except Exception as e:
|
||||||
#print(f"Error processing {filepath}: {e}")
|
print(f"Error processing {filepath}: {e}")
|
||||||
|
|
||||||
df = pd.DataFrame(results)
|
df = pd.DataFrame(results)
|
||||||
#%%
|
#%%
|
||||||
|
|
Loading…
Reference in a new issue