phylogenie 3.0.0__py3-none-any.whl → 3.1.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- phylogenie/treesimulator/io/nexus.py +4 -2
- phylogenie/treesimulator/utils.py +1 -1
- {phylogenie-3.0.0.dist-info → phylogenie-3.1.2.dist-info}/METADATA +1 -1
- {phylogenie-3.0.0.dist-info → phylogenie-3.1.2.dist-info}/RECORD +7 -7
- {phylogenie-3.0.0.dist-info → phylogenie-3.1.2.dist-info}/LICENSE.txt +0 -0
- {phylogenie-3.0.0.dist-info → phylogenie-3.1.2.dist-info}/WHEEL +0 -0
- {phylogenie-3.0.0.dist-info → phylogenie-3.1.2.dist-info}/entry_points.txt +0 -0
|
@@ -32,9 +32,11 @@ def _parse_trees_block(lines: Iterator[str]) -> dict[str, Tree]:
|
|
|
32
32
|
else:
|
|
33
33
|
match = re.match(r"^TREE\s*\*?\s+(\S+)\s*=\s*(.+)$", line, re.IGNORECASE)
|
|
34
34
|
if match is None:
|
|
35
|
-
raise ValueError(
|
|
35
|
+
raise ValueError(
|
|
36
|
+
f"Invalid tree line. Expected 'TREE <name> = <newick>'"
|
|
37
|
+
)
|
|
36
38
|
trees[match.group(1)] = parse_newick(match.group(2), translations)
|
|
37
|
-
|
|
39
|
+
raise ValueError("Unterminated TREES block.")
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
def load_nexus(nexus_file: str | Path) -> dict[str, Tree]:
|
|
@@ -22,7 +22,7 @@ def get_node_depths(tree: Tree) -> dict[Tree, float]:
|
|
|
22
22
|
depths: dict[Tree, float] = {tree: tree.depth}
|
|
23
23
|
for node in tree.iter_descendants():
|
|
24
24
|
parent_depth = depths[node.parent] # pyright: ignore
|
|
25
|
-
depths[node] =
|
|
25
|
+
depths[node] = node.branch_length_or_raise() + parent_depth
|
|
26
26
|
return depths
|
|
27
27
|
|
|
28
28
|
|
|
@@ -27,14 +27,14 @@ phylogenie/treesimulator/features.py,sha256=XbuwGw8xjGs2lNhJvvUUvXVtheSTBaSN6qj3
|
|
|
27
27
|
phylogenie/treesimulator/gillespie.py,sha256=ey2hdpJOSpNW88duwK7wTAdYSTnSuTSZ_yhZv9MlNHo,5323
|
|
28
28
|
phylogenie/treesimulator/io/__init__.py,sha256=rfP-zp8SP8baq5_4dPAr10WH0W6KfoMCxdTZDCSXtzE,185
|
|
29
29
|
phylogenie/treesimulator/io/newick.py,sha256=8Pr_jixByPOaVch18w-rFt62HYy0U97YMu0H-QSwIy0,3449
|
|
30
|
-
phylogenie/treesimulator/io/nexus.py,sha256=
|
|
30
|
+
phylogenie/treesimulator/io/nexus.py,sha256=wmOueclNRp85Zcs72dpaoKFiDY13TtmEL0mabKYni0w,1703
|
|
31
31
|
phylogenie/treesimulator/model.py,sha256=L0RsL6H1ynFDPecULniSs4Cs8dvz87ovviQOXFy5Qt0,4580
|
|
32
32
|
phylogenie/treesimulator/tree.py,sha256=-yMW14018x9dw45TonS6nRlzWcwXcaHv3Jn5HYriLQQ,6009
|
|
33
|
-
phylogenie/treesimulator/utils.py,sha256=
|
|
33
|
+
phylogenie/treesimulator/utils.py,sha256=OxZwVHxN004Jf-kYZ_GfJgIY0beo-0tYq80CuFGQt-M,3416
|
|
34
34
|
phylogenie/typeguards.py,sha256=JtqmbEWJZBRHbWgCvcl6nrWm3VcBfzRbklbTBYHItn0,1325
|
|
35
35
|
phylogenie/typings.py,sha256=p694PBe_tk25A6N8vGGWxuqoDtt3nHFUsIYJrwR_76Y,494
|
|
36
|
-
phylogenie-3.
|
|
37
|
-
phylogenie-3.
|
|
38
|
-
phylogenie-3.
|
|
39
|
-
phylogenie-3.
|
|
40
|
-
phylogenie-3.
|
|
36
|
+
phylogenie-3.1.2.dist-info/LICENSE.txt,sha256=NUrDqElK-eD3I0WqC004CJsy6cs0JgsAoebDv_42-pw,1071
|
|
37
|
+
phylogenie-3.1.2.dist-info/METADATA,sha256=8bNrxXaHWW1N1nWmjDwf8CV9306fDaxguE2xoWmPufU,5476
|
|
38
|
+
phylogenie-3.1.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
39
|
+
phylogenie-3.1.2.dist-info/entry_points.txt,sha256=Rt6_usN0FkBX1ZfiqCirjMN9FKOgFLG8rydcQ8kugeE,51
|
|
40
|
+
phylogenie-3.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|