Skip to content

Commit

Permalink
Merge pull request #712 from nextstrain/fix-refine-error-message
Browse files Browse the repository at this point in the history
Recommend an alternate action when skyline optimization fails
  • Loading branch information
huddlej authored Apr 12, 2021
2 parents 6e5c9f7 + fb681e1 commit c663c95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion augur/refine.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,11 @@ def run(args):
node_data['skyline'] = [[float(x) for x in skyline.x], [float(y) for y in conf[0]],
[float(y) for y in skyline.y], [float(y) for y in conf[1]]]
except:
print("ERROR: skyline optimization by TreeTime has failed.", file=sys.stderr)
print(
"ERROR: skyline optimization by TreeTime has failed.",
"To avoid this error, try running without coalescent optimization or with `--coalescent opt` instead of `--coalescent skyline`.",
file=sys.stderr
)
return 1

attributes.extend(['numdate', 'clock_length', 'mutation_length', 'raw_date', 'date'])
Expand Down

0 comments on commit c663c95

Please sign in to comment.