if prior == "log-uniform":
// Map the number of bins to a log-space for the dimension bounds.
bins_mapped = np.logspace(*np.log10(bounds), bins)
else:
// Use the original number of bins.
bins_mapped = bins
After Change
if prior == "log-uniform":
// Map the number of bins to a log-space for the dimension bounds.
bounds_log = np.log10(bounds)
bins_mapped = np.logspace(bounds_log[0], bounds_log[1], bins)
// Note that Python 3.X supports the following, but not Python 2.7
// bins_mapped = np.logspace(*np.log10(bounds), bins)
else: