Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyFstat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gregory Ashton
PyFstat
Commits
78ab5b6d
Commit
78ab5b6d
authored
8 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyfstat.py
+7
-2
7 additions, 2 deletions
pyfstat.py
with
7 additions
and
2 deletions
pyfstat.py
+
7
−
2
View file @
78ab5b6d
...
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment