Fixed issue related to nuisance parameters in madminer.fisherinformation
@@ -204,7 +204,7 @@ class FisherInformation:
) = load_madminer_settings(filename, include_nuisance_benchmarks=include_nuisance_parameters)
self.n_parameters = len(self.parameters)
self.n_benchmarks = len(self.benchmarks)
- self.n_benchmarks_phys = len(self.benchmarks[np.logical_not(self.benchmark_is_nuisance)])
+ self.n_benchmarks_phys = np.sum(np.logical_not(self.benchmark_is_nuisance))
logging.info("Found %s parameters:", len(self.parameters))
for key, values in six.iteritems(self.parameters):
