Skip to content

Commit

Permalink
upgraded to nautilus 0.2.1 that should solve the issue lenstronomy#328
Browse files Browse the repository at this point in the history
  • Loading branch information
sibirrer committed Sep 3, 2022
1 parent 1c4ba2b commit 338ab25
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pyyaml
pyxdg
h5py
zeus-mcmc
nautilus-sampler>=0.2.0
nautilus-sampler>=0.2.1


schwimmbad
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def run_tests(self):
]
tests_require = ['pytest>=2.3', "mock", 'colossus==1.3.0', 'slitronomy==0.3.2',
'emcee>=3.0.0', 'dynesty', 'nestcheck', 'pymultinest', 'zeus-mcmc>=2.4.0',
'nautilus-sampler>=0.2.0',
'nautilus-sampler>=0.2.1',
]

PACKAGE_PATH = os.path.abspath(os.path.join(__file__, os.pardir))
Expand Down
14 changes: 7 additions & 7 deletions test/test_Sampling/test_Samplers/test_nautilus.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ def test_sampler(self, import_fixture):
kwargs_run_fail['prior_type'] = 'wrong'
assert_raises(ValueError, sampler.nautilus_sampling, **kwargs_run_fail)

# def test_prior(self):
def test_prior(self):

# num_param = 10
# from nautilus import Prior
# prior = Prior()
num_param = 10
from nautilus import Prior
prior = Prior()

# for i in range(num_param):
# prior.add_parameter(dist=(0, 1))
# assert num_param == prior.dimensionality()
for i in range(num_param):
prior.add_parameter(dist=(0, 1))
assert num_param == prior.dimensionality()


if __name__ == '__main__':
Expand Down

0 comments on commit 338ab25

Please sign in to comment.