Skip to content

Commit

Permalink
Now it's a warning. Closes #316.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erick Matsen committed Oct 25, 2013
1 parent dbbee38 commit 9f1a32d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pplacer_src/gcat_model.ml
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ module Glv_arr = Glv_arr.Make(Model)
let init_of_json o ref_align =
let model_name = Hashtbl.find o "subs_model" |> Jsontype.string in
if Alignment.is_nuc_align ref_align && model_name <> "GTR" then
failwith "You have given me what appears to be a nucleotide alignment, but have specified a model other than GTR. I only know GTR for nucleotides!";
dprint "WARNING: You have given me what appears to be a nucleotide alignment, but have specified a model other than GTR. I only know GTR for nucleotides!\n";
let empirical_freqs = Hashtbl.find o "empirical_frequencies" |> Jsontype.bool
and opt_transitions = Hashtbl.Exceptionless.find o "subs_rates"
|> Option.map
Expand Down
4 changes: 2 additions & 2 deletions pplacer_src/gmix_model.ml
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ let init_of_prefs ref_dir_complete prefs ref_align =
| _ -> Parse_stats.parse_stats ref_dir_complete prefs
in
if Alignment.is_nuc_align ref_align && (Prefs.model_name prefs) <> "GTR" then
failwith "You have given me what appears to be a nucleotide alignment, but have specified a model other than GTR. I only know GTR for nucleotides!";
dprint "WARNING: You have given me what appears to be a nucleotide alignment, but have specified a model other than GTR. I only know GTR for nucleotides!\n";
Glvm.Gmix_model
((Prefs.model_name prefs),
(Prefs.emperical_freqs prefs),
Expand All @@ -369,7 +369,7 @@ let init_of_stats_fname prefs stats_fname ref_align =
let init_of_json o ref_align =
let model_name = Hashtbl.find o "subs_model" |> Jsontype.string in
if Alignment.is_nuc_align ref_align && model_name <> "GTR" then
failwith "You have given me what appears to be a nucleotide alignment, but have specified a model other than GTR. I only know GTR for nucleotides!";
dprint "WARNING: You have given me what appears to be a nucleotide alignment, but have specified a model other than GTR. I only know GTR for nucleotides!\n";
if Hashtbl.find o "ras_model" |> Jsontype.string <> "gamma" then
failwith "Whoops! This is supposed to be a gamma mixture model.";
let gamma_o = Hashtbl.find o "gamma" in
Expand Down

0 comments on commit 9f1a32d

Please sign in to comment.