Exemplo n.º 1
0
def get_environment():
    """
    Returns a dictionary describing the environment in which msprime
    is currently running.
    """
    env = {
        "hdf5": {
            "version": _msprime.get_hdf5_version()
        },
        "gsl": {
            "version": _msprime.get_gsl_version()
        },
        "os": {
            "system": platform.system(),
            "node": platform.node(),
            "release": platform.release(),
            "version": platform.version(),
            "machine": platform.machine(),
        },
        "python": {
            "implementation": platform.python_implementation(),
            "version": platform.python_version_tuple(),
        }
    }
    return env
Exemplo n.º 2
0
 def run_module_functions(self):
     """
     Runs the module level functions.
     """
     major, minor = _msprime.get_gsl_version()
     major, minor, revision = _msprime.get_hdf5_version()
     version_str = _msprime.get_library_version_str()
Exemplo n.º 3
0
def get_environment():
    """
    Returns a dictionary describing the environment in which msprime
    is currently running.
    """
    env = {
        "hdf5": {
            "version": _msprime.get_hdf5_version()
        },
        "gsl": {
            "version": _msprime.get_gsl_version()
        },
        "os": {
            "system": platform.system(),
            "node": platform.node(),
            "release": platform.release(),
            "version": platform.version(),
            "machine": platform.machine(),
        },
        "python": {
            "implementation": platform.python_implementation(),
            "version": platform.python_version_tuple(),
        }
    }
    return env
Exemplo n.º 4
0
import platform

import _msprime

__version__ = "undefined"
try:
    from . import _version
    __version__ = _version.version
except ImportError:
    pass

# Getting the hdf5 version here on import because we seem to leak memory
# if we call this function over and over again. Looks like a bug in the
# underlying HDF5 lib.
_hdf5_version = _msprime.get_hdf5_version()
_gsl_version = _msprime.get_gsl_version()


def get_environment():
    """
    Returns a dictionary describing the environment in which msprime
    is currently running.
    """
    env = {
        "hdf5": {
            "version": _hdf5_version
        },
        "gsl": {
            "version": _gsl_version
        },