fix default gamma value error in command line interface #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Pierre!
I was testing the new version of treetime and I got the following error. When calling:
on the example data I got:
This does not happen if I explicitly set
--gamma 2
when I call treeknit.After some investigation I think this is due to the change introduced in #38, where gamma became a float, but not in the default arguments.
The minimal change that I can make to fix the error is just to change the line:
to
With this change now
works.
I also changed the type of gamma to
Float64
inOptArgs
andset_up_optargs
, but feel free to revert this if there is a reason to keep it toReal
.Hope this is helpful!
Marco