Coder Social home page Coder Social logo

Comments (6)

jeetsukumaran avatar jeetsukumaran commented on July 17, 2024 1

No problem.

Thanks for taking the time to report this and other issues and thereby improve the library!

But I'm re-opening this to keep it open till I actually get around to updating the code to set the rooting.

from dendropy.

jeetsukumaran avatar jeetsukumaran commented on July 17, 2024

No, this is a bug. I overlooked setting the rooting state. Will do so. Thanks for pointing it out!

from dendropy.

yasuiniko avatar yasuiniko commented on July 17, 2024

Ok, glad to help. Two more things:

  1. Is this correct practice for rooting/unrooting trees?
root_status = True # False
my_tree.is_rooted = root_status
my_tree.update_bipartitions()
  1. The "nj_tree" method also appears to create None-rooted trees.

from dendropy.

jeetsukumaran avatar jeetsukumaran commented on July 17, 2024

Yep! There's more to it under the hood (is_rooted is actually a managed property as is is_unrooted; both is_rooted=True and is_unrooted=False, and vice versa, update the underlying hidden attribute correctly), but for client code that's all there is to it!

from dendropy.

yasuiniko avatar yasuiniko commented on July 17, 2024

Perfect, I'll mark this as closed then.

Thanks for developing this extremely useful library!

from dendropy.

jeetsukumaran avatar jeetsukumaran commented on July 17, 2024

Fixed in 285d33b .

from dendropy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.