phylogenie 2.1.29__py3-none-any.whl → 2.1.30__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/io/nexus.py CHANGED
@@ -9,12 +9,13 @@ from phylogenie.tree import Tree
9
9
  def _parse_translate_block(lines: Iterator[str]) -> dict[str, str]:
10
10
  translations: dict[str, str] = {}
11
11
  for line in lines:
12
- match = re.match(r"\s*(\d+)\s+['\"]?([^'\",;]+)['\"]?", line)
12
+ line = line.strip()
13
+ match = re.match(r"(\d+)\s+['\"]?([^'\",;]+)['\"]?", line)
13
14
  if match is None:
14
15
  if ";" in line:
15
16
  return translations
16
17
  else:
17
- raise ValueError(f"Invalid translate line: {line.strip()}")
18
+ raise ValueError(f"Invalid translate line: {line}")
18
19
  translations[match.group(1)] = match.group(2)
19
20
  raise ValueError("Translate block not terminated with ';'")
20
21
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phylogenie
3
- Version: 2.1.29
3
+ Version: 2.1.30
4
4
  Summary: Generate phylogenetic datasets with minimal setup effort
5
5
  Author: Gabriele Marino
6
6
  Author-email: gabmarino.8601@gmail.com
@@ -10,7 +10,7 @@ phylogenie/generators/typeguards.py,sha256=yj4VkhOaUXJ2OrY-6zhOeY9C4yKIQxjZtk2d-
10
10
  phylogenie/io/__init__.py,sha256=gtRYtDdZSTlWCj3I4vmMJSAs93jdz5RySkCakD3sxlQ,214
11
11
  phylogenie/io/fasta.py,sha256=CUFO06m7wClprarsMheZojM4Os2NQf3ALYUXSWzfNL0,869
12
12
  phylogenie/io/newick.py,sha256=4j7m9B11erVJijye0GfpbWomk2ttlBXdyHNoBc_fvIg,3435
13
- phylogenie/io/nexus.py,sha256=KGf0rH8sAVAuPnmhokj2XbQTBsiuhPujJflRixUunGY,1583
13
+ phylogenie/io/nexus.py,sha256=wxY8YN0glHUU_OJyR5cN7n7wvWyNrelLOW2FcET6Mxw,1600
14
14
  phylogenie/main.py,sha256=vtvSpQxBNlYABoFQ25czl-l3fIr4QRo3svWVd-jcArw,1170
15
15
  phylogenie/models.py,sha256=pCg9ob0RpLUHwM49x4knKxL4FNPr3-EU_6zMXsvxtAg,370
16
16
  phylogenie/msa.py,sha256=JDGyZUsAq6-m-SQjoCDjAkAZIxfgyl_PDIhdYn5HOow,2064
@@ -32,8 +32,8 @@ phylogenie/treesimulator/model.py,sha256=lhDwmBFQ8Qh8qVGZPgED0vehtPC3DE7_CgCV_8r
32
32
  phylogenie/typeguards.py,sha256=JtqmbEWJZBRHbWgCvcl6nrWm3VcBfzRbklbTBYHItn0,1325
33
33
  phylogenie/typings.py,sha256=p694PBe_tk25A6N8vGGWxuqoDtt3nHFUsIYJrwR_76Y,494
34
34
  phylogenie/utils.py,sha256=ehVk_2kvjW8Q_EyM2kxBPHYiK-KlPmZQx7JeVN6Fh-E,5419
35
- phylogenie-2.1.29.dist-info/LICENSE.txt,sha256=NUrDqElK-eD3I0WqC004CJsy6cs0JgsAoebDv_42-pw,1071
36
- phylogenie-2.1.29.dist-info/METADATA,sha256=mVsGaofekWG_o0Mu2CqYu7RZsEL7MKsY3m5w7wv8hAw,5477
37
- phylogenie-2.1.29.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
38
- phylogenie-2.1.29.dist-info/entry_points.txt,sha256=Rt6_usN0FkBX1ZfiqCirjMN9FKOgFLG8rydcQ8kugeE,51
39
- phylogenie-2.1.29.dist-info/RECORD,,
35
+ phylogenie-2.1.30.dist-info/LICENSE.txt,sha256=NUrDqElK-eD3I0WqC004CJsy6cs0JgsAoebDv_42-pw,1071
36
+ phylogenie-2.1.30.dist-info/METADATA,sha256=XRaW1c5BiitXB68zfaDGGVF3sO3-ZGACutgsgDf8BCs,5477
37
+ phylogenie-2.1.30.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
38
+ phylogenie-2.1.30.dist-info/entry_points.txt,sha256=Rt6_usN0FkBX1ZfiqCirjMN9FKOgFLG8rydcQ8kugeE,51
39
+ phylogenie-2.1.30.dist-info/RECORD,,