Skip to content

Commit e97e375

Browse files
committed
fix docstring
1 parent 6b9671b commit e97e375

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

bayesflow/simulators/sequential_simulator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _single_sample(self, batch_shape_ext, **kwargs) -> dict[str, np.ndarray]:
8888
return self.sample(batch_shape=(1, *tuple(batch_shape_ext)), **kwargs)
8989

9090
def sample_parallel(
91-
self, batch_shape: Shape, n_jobs: int = -1, verbose: int = 0, **kwargs
91+
self, batch_shape: Shape, n_jobs: int = -1, verbose: int = 1, **kwargs
9292
) -> dict[str, np.ndarray]:
9393
"""
9494
Sample in parallel from the sequential simulator.
@@ -101,7 +101,7 @@ def sample_parallel(
101101
n_jobs : int, optional
102102
Number of parallel jobs. -1 uses all available cores. Default is -1.
103103
verbose : int, optional
104-
Verbosity level for joblib. Default is 0 (no output).
104+
Verbosity level for joblib. Default is 1 (minimal output).
105105
**kwargs
106106
Additional keyword arguments passed to each simulator. These may include previously
107107
sampled outputs used as inputs for subsequent simulators.

bayesflow/simulators/simulator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,8 @@ def accept_all_predicate(x):
9595
return np.full((sample_size,), True)
9696

9797
return self.rejection_sample(batch_shape, predicate=accept_all_predicate, sample_size=sample_size, **kwargs)
98+
99+
def sample_parallel(
100+
self, batch_shape: Shape, n_jobs: int = -1, verbose: int = 1, **kwargs
101+
) -> dict[str, np.ndarray]:
102+
raise NotImplementedError

0 commit comments

Comments
 (0)