Skip to content

Commit f5e52c9

Browse files
committed
update test
1 parent c30edf9 commit f5e52c9

3 files changed

Lines changed: 9 additions & 29 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88
### Added
99
### Changed
1010
### Fixed
11+
[3.0.0 - Unreleased]
12+
### Added
13+
14+
### Changed
15+
- Remove n_effective option from static sampler run_nested
16+
- Remove custom update_func
17+
- Remove hslice
18+
- Remove 'user-defined' proposal distribution
19+
### Fixed
1120

1221
[2.1.5 - 2024-12-17]
1322
### Fixed

tests/test_gau.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -206,26 +206,6 @@ def test_generator():
206206
check_results_gau(res, g, rstate)
207207

208208

209-
def test_n_effective():
210-
# Test that n_effective controls the sample size
211-
rstate = get_rstate()
212-
g = Gaussian()
213-
sampler = dynesty.NestedSampler(g.loglikelihood,
214-
g.prior_transform,
215-
g.ndim,
216-
nlive=nlive,
217-
rstate=rstate)
218-
target_n_effective = 2
219-
220-
current_n_effective = sampler.n_effective
221-
222-
for _ in sampler.sample(add_live=False, n_effective=target_n_effective):
223-
previous_n_effective = current_n_effective
224-
current_n_effective = sampler.n_effective
225-
226-
assert current_n_effective > target_n_effective > previous_n_effective
227-
228-
229209
# try all combinations except
230210
@pytest.mark.parametrize(
231211
"bound,sample",

tests/test_misc.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,6 @@ def test_neff():
252252
# test of neff functionality
253253
ndim = 2
254254
rstate = get_rstate()
255-
sampler = dynesty.NestedSampler(loglike,
256-
prior_transform,
257-
ndim,
258-
nlive=nlive,
259-
rstate=rstate)
260-
assert sampler.n_effective == 0
261-
sampler.run_nested(print_progress=printing)
262-
assert sampler.n_effective > 10
263-
264255
sampler = dynesty.DynamicNestedSampler(loglike,
265256
prior_transform,
266257
ndim,

0 commit comments

Comments
 (0)