Coverage for bilby/__init__.py: 75%
12 statements
« prev ^ index » next coverage.py v7.6.1, created at 2025-05-06 04:57 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2025-05-06 04:57 +0000
1"""
2Bilby
3=====
5Bilby: a user-friendly Bayesian inference library.
7The aim of bilby is to provide a user-friendly interface to perform parameter
8estimation. It is primarily designed and built for inference of compact
9binary coalescence events in interferometric data, but it can also be used for
10more general problems.
12The code, and many examples are hosted at https://git.ligo.org/lscsoft/bilby.
13For installation instructions see
14https://lscsoft.docs.ligo.org/bilby/installation.html.
16"""
19import sys
21from . import core, gw, hyper
23from .core import utils, likelihood, prior, result, sampler
24from .core.sampler import run_sampler
25from .core.likelihood import Likelihood
26from .core.result import read_in_result, read_in_result_list
28try:
29 from ._version import version as __version__
30except ModuleNotFoundError: # development mode
31 __version__ = 'unknown'
34if sys.version_info < (3,):
35 raise ImportError(
36"""You are running bilby >= 0.6.4 on Python 2
38Bilby 0.6.4 and above are no longer compatible with Python 2, and you still
39ended up with this version installed. That's unfortunate; sorry about that.
40It should not have happened. Make sure you have pip >= 9.0 to avoid this kind
41of issue, as well as setuptools >= 24.2:
43 $ pip install pip setuptools --upgrade
45Your choices:
47- Upgrade to Python 3.
49- Install an older version of bilby:
51 $ pip install 'bilby<0.6.4'
53""")