// lingpy-specific aspects of cogent"s trees and allows us to include// them in our documentationiftype(tree)== str:
iftree[-4:] not in [".nwk", ".txt"]:
tmp = LoadTree(treestring=tree)
else:
tmp = LoadTree(tree)
After Change
// lingpy-specific aspects of cogent"s trees and allows us to include// them in our documentationiftype(tree)== str:
ifnot os.path.isfile(tree):
tmp = LoadTree(treestring=tree)
else:
tmp = LoadTree(tree)