Fixed bug in parse_nu
@@ -1636,7 +1636,7 @@ class SampleAugmenter(DataAnalyzer):
if n_thetas < 1:
n_thetas = 1
- if nu_type_in == "nominal":
+ if nu_type_in == "nominal" or self.n_nuisance_parameters == 0:
nu_out = [None for _ in range(n_thetas)]
elif nu_type_in == "iid":
@@ -1685,8 +1685,8 @@ class SampleAugmenter(DataAnalyzer):
n_nu_sets_before = len(nu)
if n_theta_sets_before <= 0 or n_nu_sets_before <= 0:
- raise RuntimeError("Inconsistent number of sets in _build_sets: thetas = {}, nus = {}, theta = {}, "
- "nu = {}".format(thetas, nus, theta, nu))
+ raise RuntimeError(("Inconsistent number of sets in _build_sets: thetas = {}, nus = {}, theta = {}, "
+ "nu = {}").format(thetas, nus, theta, nu))
for i_set in range(n_sets):
sets[i_set].append((theta[i_set % n_theta_sets_before], nu[i_set % n_nu_sets_before]))
