Skip to content

Commit

Permalink
Minor update to comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnlaffan committed Apr 13, 2016
1 parent 2ccedb4 commit 903cf42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Biodiverse/ReadNexus.pm
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ sub parse_newick {
my $node_count = $args{node_count} // croak 'node_count arg not passed (must be scalar ref)';
my $translate_hash = $args{translate_hash}
|| $self->get_param ('TRANSLATE_HASH');
# clunky that we need to do this - was convenient once, but not now
my $use_element_properties = $self->get_param ('USE_ELEMENT_PROPERTIES');
my $element_properties = $use_element_properties
? ($args{element_properties} || $self->get_param ('ELEMENT_PROPERTIES'))
Expand All @@ -613,7 +614,7 @@ sub parse_newick {

my $progress_bar = $args{progress_bar};
if (!$progress_bar) {
$est_node_count = $string =~ tr/,(//; # tr shortcuts to count items matching /(,/
$est_node_count = $string =~ tr/,(//; # tr shortcuts to count items matching /,(/
$est_node_count ||= 1;
#say "Estimated node count is $est_node_count";
$tree->set_cached_value (ESTIMATED_NODE_COUNT => $est_node_count);
Expand Down

0 comments on commit 903cf42

Please sign in to comment.