ddict2dict

lsst.cp.pipe.utils.ddict2dict(d)

Convert nested default dictionaries to regular dictionaries.

This is needed to prevent yaml persistence issues.

Parameters:
d : defaultdict

A possibly nested set of defaultdict.

Returns:
dict : dict

A possibly nested set of dict.