Skip to content
Snippets Groups Projects
Commit 78ab5b6d authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Adds error message if run has neither Nsegs0 or run_setup

parent ed165c5f
No related branches found
No related tags found
No related merge requests found
......@@ -2232,8 +2232,13 @@ class MCMCFollowUpSearch(MCMCSemiCoherentSearch):
except KeyError:
return False
def init_run_setup(self, run_setup, log_table=True, gen_tex_table=True,
R=10, Nsegs0=None):
def init_run_setup(self, run_setup=None, R=10, Nsegs0=None, log_table=True,
gen_tex_table=True):
if run_setup is None and Nsegs0 is None:
raise ValueError(
'You must either specify the run_setup, or Nsegs0 from which '
'the optimial run_setup given R can be estimated')
fiducial_freq, DeltaOmega, DeltaFs = self.init_V_estimate_parameters()
if run_setup is None:
logging.info('No run_setup provided')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment