bella-companion 0.0.12__py3-none-any.whl → 0.0.14__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.
@@ -1,6 +1,6 @@
1
1
  import json
2
2
  import os
3
- from itertools import combinations
3
+ from itertools import product
4
4
  from pathlib import Path
5
5
 
6
6
  import numpy as np
@@ -14,7 +14,9 @@ from bella_companion.utils import submit_job
14
14
 
15
15
  def _get_migration_rates_init(types: list[str], init_rate: float = 1) -> str:
16
16
  mus: list[float] = []
17
- for t1, t2 in combinations(types, 2):
17
+ for t1, t2 in product(types, types):
18
+ if t1 == t2:
19
+ continue
18
20
  traits1 = np.array(list(map(int, t1.split("_"))))
19
21
  traits2 = np.array(list(map(int, t2.split("_"))))
20
22
  mus.append(init_rate if np.sum(np.abs(traits1 - traits2)) == 1 else 0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bella-companion
3
- Version: 0.0.12
3
+ Version: 0.0.14
4
4
  Summary:
5
5
  Author: gabriele-marino
6
6
  Author-email: gabmarino.8601@gmail.com
@@ -10,7 +10,7 @@ Classifier: Programming Language :: Python :: 3.10
10
10
  Classifier: Programming Language :: Python :: 3.11
11
11
  Classifier: Programming Language :: Python :: 3.12
12
12
  Requires-Dist: arviz (>=0.22.0,<0.23.0)
13
- Requires-Dist: bella-lumiere (>=0.0.13,<0.0.14)
13
+ Requires-Dist: bella-lumiere (>=0.0.14,<0.0.15)
14
14
  Requires-Dist: dotenv (>=0.9.9,<0.10.0)
15
15
  Requires-Dist: phylogenie (>=2.1.30,<3.0.0)
16
16
  Requires-Dist: seaborn (>=0.13.2,<0.14.0)
@@ -5,7 +5,7 @@ bella_companion/fbd_empirical/data/change_times.csv,sha256=tedobHbaY7-6M3V6F6HSq
5
5
  bella_companion/fbd_empirical/data/traits.csv,sha256=cxNKYmgtBCKHsm9qnOpS29Rkx9cQKe0oxpgaXSIukJg,5422
6
6
  bella_companion/fbd_empirical/data/trees.nwk,sha256=JAsdfGhTIzGmJz6g6-0s5SVfqNuxawOMc9gbt0srue4,539385
7
7
  bella_companion/fbd_empirical/results.py,sha256=0FENY5EpgNQ6rwPsEiOT2ZEO5oBbIAK6TzPvk11SDnk,3116
8
- bella_companion/fbd_empirical/run_beast.py,sha256=MPW4A10NiXc8y3JS3ZN17DL-Oh8IoIdTv1Y5QLLrcxo,3229
8
+ bella_companion/fbd_empirical/run_beast.py,sha256=daDuRgkVlXTZdjtoanNzgQpBw8uXv1D7hoivCnhLM6U,3265
9
9
  bella_companion/fbd_empirical/summarize_logs.py,sha256=OoT43DMjim9o4qsjYCgGKnBKp3dHXzVP6sVtzqR8lMQ,955
10
10
  bella_companion/simulations/__init__.py,sha256=ShYRdp1iSjnS_SzcsH-8jbqXz6P1nyRQZqAtPZJCMVE,454
11
11
  bella_companion/simulations/features.py,sha256=DZOBpJGlQ0UinqUZYbEtoemZ2eQGVLV_i-DfpW31qJI,104
@@ -35,7 +35,7 @@ bella_companion/utils/__init__.py,sha256=UtMwPK9dWf9NAl0ic8CSsgdW7aSm-5J49OqgvD7
35
35
  bella_companion/utils/beast.py,sha256=TBa0cLklX1_tXqoQE4LRYvds7mLg_9fS2-6U6OHENHo,2184
36
36
  bella_companion/utils/explain.py,sha256=uP7HPyn2YiykAI69BQV3RooDpC6qKoCLXfp3Uibp4zk,1475
37
37
  bella_companion/utils/slurm.py,sha256=v5DaG7YHVyK8KRFptgGDC6I8jxEhyJuMVK9N08pZSAI,1812
38
- bella_companion-0.0.12.dist-info/METADATA,sha256=0XKEli6E-1urNh-LiUEm9nqBm5FR6CWqZHXo4ow4rK4,577
39
- bella_companion-0.0.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
40
- bella_companion-0.0.12.dist-info/entry_points.txt,sha256=rSeKoAhmjnQqAYFcXBv0gAM2ViJfJe0D8_dD-fWrXeg,50
41
- bella_companion-0.0.12.dist-info/RECORD,,
38
+ bella_companion-0.0.14.dist-info/METADATA,sha256=TqkINLE8EFexOUFK0E1rNHoZHQgLgMsPZa7I_D2hGAI,577
39
+ bella_companion-0.0.14.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
40
+ bella_companion-0.0.14.dist-info/entry_points.txt,sha256=rSeKoAhmjnQqAYFcXBv0gAM2ViJfJe0D8_dD-fWrXeg,50
41
+ bella_companion-0.0.14.dist-info/RECORD,,