Problem
Output file currently writes wavelength twice: the dump function in diffpy.utils writes the wavelength explicitly, and wavelength is written again as part of the metadata.
Proposed solution
Remove wavelength from metadata temporarily before writing output file.