Skip to content

Commit

Permalink
Take ultrametric out from TreeStyle.
Browse files Browse the repository at this point in the history
Modifying a tree should not be part of a "style". It was also causing
really tricky problems with the initialization of a tree as ultrametric
and then properly modifying it at any point in the explorer.

This commit removes the attribute "ultrametric" from TreeStyle
and changes the confusing "tree" name for both the Tree structure
and the data associated to it, that is used all around in server.py.

The total information for a tree is called tree_data now, and the
tree (of class Tree) itself is tree_data.tree. Also, having forced
it to be ultrametric is stored now in tree_data.ultrametric, and not
on any style.

There are some minor fixes and simplifications too.
  • Loading branch information
jordibc committed Nov 7, 2023
1 parent aef944b commit 0110705
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 191 deletions.
Loading

0 comments on commit 0110705

Please sign in to comment.