Skip to content

Commit a345a1b

Browse files
committed
Updated tag and removed prints, fixed helpformatter
1 parent efc14d8 commit a345a1b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

budgitree/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
Budgitree init.py
33
"""
44

5-
__version__ = "0.0.8"
5+
__version__ = "0.0.9"
66
__parent_dir__ = 'budgitree'
77
__test_tree__ = 'data/example_tree.tree'

budgitree/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def main():
4242
title="Sub-commands help", help="", metavar="", dest="subparser_name")
4343
subparser_modules.add_parser(
4444
"smuggle", help="Smuggle the budgie.", description="Process the tree.",
45-
parents=[subparser_args1])
45+
parents=[subparser_args1],
46+
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
4647

4748
subparser_modules.add_parser(
4849
"version", help="Print version.", description="Print version.")
@@ -87,15 +88,14 @@ def main():
8788
t.standardize()
8889
tree = Phylo.read(StringIO(t.write(format = 0)), "newick")
8990
if args.support_multiplier is not None:
90-
print(f"Multiplying branch supports by {args.support_multiplier}")
91+
print(f"Multiplying branch supports by {args.support_multiplier}", file = sys.stderr)
9192
for non_terminal in tree.get_nonterminals():
9293
if non_terminal.confidence is not None:
9394
if args.support_multiplier == 100:
9495
non_terminal.confidence = float("{0:.0f}".format(float(non_terminal.confidence * args.support_multiplier)))
9596
else:
9697
if args.support_multiplier == 0.1:
9798
non_terminal.confidence = float("{0:.2f}".format(float(non_terminal.confidence * args.support_multiplier)))
98-
print(tree)
9999

100100
# Polytomies created by collapsing nodes still need to be parseable.
101101
# Achieve this by increasing the recursion limit

0 commit comments

Comments
 (0)