Skip to content

Commit 0041a7a

Browse files
vagechirkovjanfb
andauthored
docs: update potentially misleading error message in simulate_for_sbi (#1689)
* update error message * Update sbi/utils/simulation_utils.py Co-authored-by: Jan Teusen (né Boelts) <[email protected]> --------- Co-authored-by: Jan Teusen (né Boelts) <[email protected]>
1 parent 6ffe7b6 commit 0041a7a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sbi/utils/simulation_utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ def simulator_seeded(theta: ndarray, seed: int) -> Tensor:
101101
]
102102
except TypeError as err:
103103
raise TypeError(
104-
"For multiprocessing, we switch to numpy arrays. Make sure to "
105-
"preprocess your simulator with `process_simulator` to handle numpy"
106-
" arrays."
104+
"There is a TypeError error in your simulator function. Note: For"
105+
" multiprocessing, we switch to numpy arrays. Besides confirming"
106+
" your simulator works correctly, make sure to preprocess your"
107+
" simulator with `process_simulator` to handle numpy arrays."
107108
) from err
108109

109110
else:

0 commit comments

Comments
 (0)