Fix HDF5 serialization after PR
@@ -787,8 +787,8 @@ def _load_nuisance_params(file_name: str) -> Dict[str, NuisanceParameter]:
param_systematics = _decode_strings(param_systematics)
param_benchmarks_pos = _decode_strings(param_benchmarks_pos)
param_benchmarks_neg = _decode_strings(param_benchmarks_neg)
- param_benchmarks_pos = [None if name == "" else name for name in param_benchmarks_pos]
- param_benchmarks_neg = [None if name == "" else name for name in param_benchmarks_neg]
+ param_benchmarks_pos = [None if name == EMPTY_EXPR else name for name in param_benchmarks_pos]
+ param_benchmarks_neg = [None if name == EMPTY_EXPR else name for name in param_benchmarks_neg]
for name, sys, benchmark_pos, benchmark_neg in zip(
param_names,
@@ -1230,7 +1230,7 @@ def _load_systematics(file_name: str) -> Tuple[List[str], List[str], List[System
systematics_names = _decode_strings(systematics_names)
systematics_types = _decode_strings(systematics_types)
systematics_scales = _decode_strings(systematics_scales)
- systematics_scales = [None if scale == "" else scale for scale in systematics_scales]
+ systematics_scales = [None if scale == EMPTY_EXPR else scale for scale in systematics_scales]
return (
systematics_names,
