CHIMEFRB / fitburst

An open-source package of utilities for direct modeling of radio dynamic spectra.
https://chimefrb.github.io/fitburst/
MIT License
11 stars 2 forks source link

RuntimeError: Signal not found in the data - Singlebeam file 171855709 #50

Closed ketansand closed 1 year ago

ketansand commented 2 years ago
/usr/local/lib/python3.7/site-packages/fitburst/backend/baseband.py in fit_profile(path, nwalkers, nchain, ncores, time_range, downsample, downsample2, DM, fit_DM, logl, save, spectrum_lim, fill_missing_time, show_chains, peaks, diagnostic_plots)
252 # Fit pulse profile
253 event_id = path.split('/')[-2].split('_')[-1]
--> 254 data, freq_id, freq, power, valid_channels, DM, DM_err, downsampling_factor, profile, t_res, peak_times, start, full_power = cut_profile(path, diagnostic_plots = diagnostic_plots, time_range = time_range, fill_missing_time = fill_missing_time, downsample = downsample, downsample2 = downsample2, DM = DM, fit_DM = fit_DM, peaks = peaks, spectrum_lim = spectrum_lim, return_full = True)
255 profile_pars, profile_pars_errs = fit_emg_mcmc(profile, t_res * np.arange(len(profile)), peaks=peak_times, logl = logl, res = t_res, nwalkers=nwalkers,
256 nchain=nchain, event_id=event_id, ncores=ncores, show_chains = show_chains,

/usr/local/lib/python3.7/site-packages/fitburst/backend/baseband.py in cut_profile(path, downsample, downsample2, peaks, time_range, DM, fit_DM, spectrum_lim, fill_missing_time, return_full, diagnostic_plots)
82 diagnostic_plots=False,
83 spectrum_lim = spectrum_lim,
---> 84 return_full=True
85 )
86 dm_max_range = 0.3

/data/user-data/ksand/baseband-analysis/baseband_analysis/analysis/snr.py in get_snr(data, DM, diagnostic_plots, w, valid_channels, time_range, return_full, spectrum_lim, DM_range, downsample, refine_RFI, fill_missing_time, thres_mean, thres_std, doublecheck_RFI, DM_step, raise_missing_signal, check_old_process, check_channel_number)
255 error_msg = "Signal not found in the data"
256 if raise_missing_signal:
--> 257 raise RuntimeError(error_msg)
258 else:
259 log.warning(error_msg)

RuntimeError: Signal not found in the data
ketansand commented 2 years ago

This issue is similar on Baseband side - https://github.com/CHIMEFRB/pipelines_wg/issues/36

This can be due to poor RFI excision - https://github.com/CHIMEFRB/pipelines_wg/issues/105

emmanuelfonseca commented 1 year ago

it looks like this arises on the baseband side of things, so i'll close this issue.