Skip to content

Commit

Permalink
Updated GeneticTrees class to be iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
sikatikenmogne committed Nov 24, 2024
1 parent 1c02f98 commit 8b9a55e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aphylogeo/genetic_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def load_trees_from_file(cls, file_name: str, format: str = "newick") -> dict:
with open(file_name, "r") as f:
str_trees = f.read()
trees = cls.load_trees_from_json(str_trees)
return cls(trees)
return trees

@classmethod
def load_trees_from_json(cls, trees: str, format: str = "newick") -> dict:
Expand Down

0 comments on commit 8b9a55e

Please sign in to comment.