Skip to content

Commit

Permalink
Merge pull request #38 from huddlej/add-gamma-cli-test
Browse files Browse the repository at this point in the history
Fix error with CLI when specifying the gamma parameter value by reverting type of gamma parameter from Real to Float64
  • Loading branch information
PierreBarrat committed Sep 14, 2023
2 parents e9d43b6 + 0b19dff commit 22cd328
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ We suggest two sets of defaults for running TreeKnit. `--better-trees` will prod
nwk_file1::AbstractString, nwk_file2::AbstractString, nwk_files::AbstractString...;
# options
outdir::AbstractString = "treeknit_results",
gamma::Real = OptArgs().γ,
gamma::Float64 = OptArgs().γ,
seq_lengths::AbstractString = join([string(i) for i in repeat([1], 2+ length(nwk_files))], " "),
n_mcmc_it::Int = OptArgs().nMCMC,
rounds::Int = 1,
Expand Down
2 changes: 1 addition & 1 deletion test/command_line_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ else
fi

export PATH="$HOME/.julia/bin:$PATH"
treeknit test/NYdata/tree_ha.nwk test/NYdata/tree_na.nwk --auspice-view
treeknit test/NYdata/tree_ha.nwk test/NYdata/tree_na.nwk --auspice-view --gamma 2
OUT=$?
if [ "$OUT" != 0 ]; then
rm -r treeknit_results
Expand Down

0 comments on commit 22cd328

Please sign in to comment.