Improved check for ensemble in madminer.fisherinformation
@@ -283,7 +283,7 @@ class FisherInformation:
raise ValueError("Unknown mode {}, has to be 'score' or 'information'!".format(mode))
# Load SALLY model
- if os.path.isdir(model_file):
+ if os.path.isdir(model_file) and os.path.exists(model_file + "/ensemble.json"):
model_is_ensemble = True
model = Ensemble()
model.load(model_file)
