diff --git a/README.rst b/README.rst index 607759b2..38cd72ae 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ anesthetic: nested sampling post-processing =========================================== :Authors: Will Handley and Lukas Hergt -:Version: 2.0.0-beta.44 +:Version: 2.0.0 :Homepage: https://github.com/handley-lab/anesthetic :Documentation: http://anesthetic.readthedocs.io/ diff --git a/anesthetic/_version.py b/anesthetic/_version.py index 57fcd1c4..afced147 100644 --- a/anesthetic/_version.py +++ b/anesthetic/_version.py @@ -1 +1 @@ -__version__ = '2.0.0b44' +__version__ = '2.0.0' diff --git a/tests/test_reader.py b/tests/test_reader.py index 0025c50e..5e914b22 100644 --- a/tests/test_reader.py +++ b/tests/test_reader.py @@ -17,6 +17,11 @@ import getdist except ImportError: pass +try: + from tables import Array # noqa: F401 + pytables_imported = True +except ImportError: + pytables_imported = False @pytest.fixture(autouse=True) @@ -237,9 +242,8 @@ def test_regex_escape(): @pytest.mark.parametrize('root', ['pc', 'gd']) -@pytest.mark.xfail('tables' not in sys.modules, - raises=ImportError, - reason="requires tables package") +@pytest.mark.skipif(pytables_imported is False, + reason="requires tables package") def test_hdf5(root): samples = read_chains('./tests/example_data/' + root) filename = 'test_hdf5.h5'