bella-companion 0.0.0__py3-none-any.whl → 0.0.1__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.

Potentially problematic release.


This version of bella-companion might be problematic. Click here for more details.

bella_companion/cli.py CHANGED
@@ -1,24 +1,23 @@
1
1
  import argparse
2
2
 
3
3
  from dotenv import load_dotenv
4
+ from bella_companion.simulations import generate_data
4
5
 
5
6
 
6
7
  def main():
7
8
  load_dotenv()
8
9
 
9
- parser = argparse.ArgumentParser(prog="bella")
10
- subparsers = parser.add_subparsers(dest="command")
10
+ parser = argparse.ArgumentParser(
11
+ prog="bella",
12
+ description="Companion tool with experiments and evaluation for Bayesian Evolutionary Layered Learning Architectures (BELLA) BEAST2 package.",
13
+ )
11
14
 
12
- gen_sim_data_parser = subparsers.add_parser("generate-simulations-data")
13
- generate_simulations_data_parser.set_defaults(func=generate_simulations_data)
14
-
15
- args = parser.parse_args()
16
- if hasattr(args, "func"):
17
- args.func(args)
18
- else:
19
- parser.print_help()
15
+ subparsers = parser.add_subparsers(dest="command", required=True)
20
16
 
17
+ gen_sim_data_parser = subparsers.add_parser(
18
+ "generate-simulations-data", help="Generate simulation data"
19
+ )
20
+ gen_sim_data_parser.set_defaults(func=generate_data)
21
21
 
22
- def generate_simulations_data(args):
23
- print("Generating simulations data...")
24
- # your logic here
22
+ args = parser.parse_args()
23
+ args.func()
@@ -0,0 +1,3 @@
1
+ from bella_companion.simulations.generate_data import generate_data
2
+
3
+ __all__ = ["generate_data"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bella-companion
3
- Version: 0.0.0
3
+ Version: 0.0.1
4
4
  Summary:
5
5
  Author: gabriele-marino
6
6
  Author-email: gabmarino.8601@gmail.com
@@ -10,4 +10,4 @@ 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: dotenv (>=0.9.9,<0.10.0)
13
- Requires-Dist: phylogenie (>=2.1.21,<3.0.0)
13
+ Requires-Dist: phylogenie (>=2.1.15,<3.0.0)
@@ -1,5 +1,5 @@
1
1
  bella_companion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- bella_companion/cli.py,sha256=IUODGLiDcxrF40ZjL-SeQtEQhoPgB989KJiXXU0-Pik,576
2
+ bella_companion/cli.py,sha256=rhtIN7fCnbbkzIb97b3KdBjgNJsltoMKUVQMGbf-tCg,653
3
3
  bella_companion/fbd_empirical/data/body_mass.csv,sha256=-UkKNtm9m3g4PjY3BcfdP6z5nL_I6p9cq6cgZ-bWKI8,30360
4
4
  bella_companion/fbd_empirical/data/change_times.csv,sha256=zmc9_z91-XMwKyIoP9v9dVlLcf4MeIHkQiHLjoMriOo,120
5
5
  bella_companion/fbd_empirical/data/sampling_change_times.csv,sha256=Gwi9RcMFy89RyvfxKVZ_MoKVRHOZLuwB_3LEaq8asMQ,32
@@ -9,7 +9,7 @@ bella_companion/fbd_empirical/notbooks.ipynb,sha256=O45kmz0lZENRDFbKXEWPsIKATfF5
9
9
  bella_companion/fbd_empirical/params.json,sha256=hU23LniClZL_GSBAxIEJUJgMa93AM8zdtFOq6mt3vkI,311
10
10
  bella_companion/fbd_empirical/run_beast.py,sha256=2sV2UmxOfWmbueiU6D0p3lueMYiZyIkSKYoblTMrYuA,1935
11
11
  bella_companion/fbd_empirical/summarize_logs.py,sha256=O6rhE606Wa98a8b1KKlLPjUOro1pfyqVTLdQksQMG0g,1439
12
- bella_companion/simulations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
+ bella_companion/simulations/__init__.py,sha256=SaGCVSy39n1BuGPHwxG8KTR9mr2E5pvqWrPNBUhbgEQ,97
13
13
  bella_companion/simulations/features.py,sha256=DZOBpJGlQ0UinqUZYbEtoemZ2eQGVLV_i-DfpW31qJI,104
14
14
  bella_companion/simulations/figures/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  bella_companion/simulations/figures/epi_explainations.py,sha256=RL9fyjl0a_zPhrGdUXqbMMu6471su8B-O6LyuFlHknw,2816
@@ -29,6 +29,7 @@ bella_companion/simulations/scenarios/fbd_no_traits.py,sha256=R6CH0fVeQg-Iesl39p
29
29
  bella_companion/simulations/scenarios/scenario.py,sha256=_FRWAyOFbw94lAzd3zCD-1ek4TrssoiXfXRQPShLiIA,620
30
30
  bella_companion/simulations/summarize_logs.py,sha256=TXaO9cjzl5O1u0fPZpRl-9txzoN-p-fkhoAHoRXTfm8,1433
31
31
  bella_companion/utils.py,sha256=26cF3oVBbsahYPO9rcK69l43ybg5AjS12IyfucgyVIM,5666
32
- bella_companion-0.0.0.dist-info/METADATA,sha256=j55dzUiDk-NtHXDt3bAQ3MYH3fkMDKNmwZ4OD71TAm4,446
33
- bella_companion-0.0.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
- bella_companion-0.0.0.dist-info/RECORD,,
32
+ bella_companion-0.0.1.dist-info/METADATA,sha256=4hbW_pstIoT1nTcZM2dgBiLc_FXdIq4T7zzpojLVNbE,446
33
+ bella_companion-0.0.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
+ bella_companion-0.0.1.dist-info/entry_points.txt,sha256=rSeKoAhmjnQqAYFcXBv0gAM2ViJfJe0D8_dD-fWrXeg,50
35
+ bella_companion-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ bella=bella_companion.cli:main
3
+