Skip to content
Snippets Groups Projects
Commit 8df4dc1f authored by Abolfazl  Ziaeemehr's avatar Abolfazl Ziaeemehr Committed by Eleni Mathioulaki
Browse files

feat(py-vbi): add vbi


Co-Authored-By: default avatarEleni Mathioulaki <emathioulaki@athenarc.gr>
parent 5a2751d0
No related branches found
No related tags found
2 merge requests!651create new experimental release,!650update spack version to v0.23.1
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PySbi(PythonPackage):
"""Python package for simulating biological systems."""
homepage = "https://sbi-dev.github.io/sbi/v0.23.3/"
url = "https://github.com/sbi-dev/sbi/archive/refs/tags/v0.23.3.tar.gz"
version("0.23.3", "b1ef102e47c90088f2adfff5ea88b18421e84c4641ff4dd4f68c1116c296ba81")
depends_on("python@3.9:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-wheel", type="build")
depends_on("py-arviz", type=("build", "run"))
depends_on("py-joblib@1.3.0:", type=("build", "run"))
depends_on("py-matplotlib", type=("build", "run"))
depends_on("py-notebook@:6.4.12", type=("build", "run"))
depends_on("py-numpy@:1", type=("build", "run"))
depends_on("py-pillow", type=("build", "run"))
depends_on("py-pyknos@0.16.0:", type=("build", "run"))
depends_on("py-pyro-ppl@1.3.1:", type=("build", "run"))
depends_on("py-scikit-learn", type=("build", "run"))
depends_on("py-scipy", type=("build", "run"))
depends_on("py-tensorboard", type=("build", "run"))
depends_on("py-torch@1.13.0:", type=("build", "run"))
depends_on("py-tqdm", type=("build", "run"))
depends_on("py-pymc@5.0.0:", type=("build", "run"))
depends_on("py-zuko@1.2.0:", type=("build", "run"))
depends_on("py-pytest", type="test")
depends_on("py-torchtestcase", type="test")
skip_modules = ["sbi.inference.snle", "sbi.inference.snpe", "sbi.inference.snre", "sbi.samplers.score", "sbi.samplers.vi"]
@run_after("install")
@on_package_attributes(run_tests=True)
def install_test(self):
pytest = which("pytest")
pytest("-m", "not slow and not gpu")
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyVbi(PythonPackage):
homepage = "https://vbi.readthedocs.io/latest/"
git = "https://github.com/ins-amu/vbi"
url = "https://github.com/ins-amu/vbi/archive/refs/tags/v0.1.3.tar.gz"
version("0.1.3", "54fa2062f44c9ec8219fae3c13c52a4bd17141b5467b982987673de0662c5255")
version("0.1.2", "6ccfeeec718be62a480002a8370130a3e3344955186f99ecbb15b646b68210d6")
depends_on("python@3.8:", type=("build","run"))
depends_on("py-setuptools", type="build")
depends_on("py-setuptools-scm", type="build")
depends_on("py-wheel", type="build")
depends_on("swig@4:", type="build")
depends_on("py-numpy", type=("build", "run"))
depends_on("py-scipy", type=("build", "run"))
depends_on("py-numba", type=("build", "run"))
depends_on("py-h5py", type=("build", "run"))
depends_on("py-pandas", type=("build", "run"))
depends_on("py-networkx", type=("build", "run"))
depends_on("py-nbconvert", type=("build", "run"))
depends_on("py-matplotlib", type=("build", "run"))
depends_on("py-tqdm", type=("build", "run"))
depends_on("py-sbi", type=("build", "run"))
depends_on("py-torch", type=("build", "run"))
depends_on("py-parameterized", type=("build", "run"))
depends_on("py-scikit-learn", type=("build", "run"))
depends_on("py-pycatch22", type=("build", "run"))
depends_on("py-pytest", type="test")
@run_after("install")
@on_package_attributes(run_tests=True)
def install_test(self):
pytest = which("pytest")
pytest()
...@@ -56,6 +56,7 @@ spack: ...@@ -56,6 +56,7 @@ spack:
- py-tvb-ext-unicore - py-tvb-ext-unicore
- py-tvb-ext-xircuits@1.1.0 - py-tvb-ext-xircuits@1.1.0
- py-viziphant@0.4.0 - py-viziphant@0.4.0
- py-vbi
- pynn-brainscales@9.0-a8 - pynn-brainscales@9.0-a8
- r-rgsl@0.1.1 - r-rgsl@0.1.1
- r-sbtabvfgen@0.1 - r-sbtabvfgen@0.1
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment