diff --git a/notebooks/pnCCD/Correct_pnCCD_NBC.ipynb b/notebooks/pnCCD/Correct_pnCCD_NBC.ipynb index 98d913e17fa78bcc682b55d26f7fe1cf3773db8e..ed6c8044d3d230a1c581d34e98dfebfdb2be6871 100644 --- a/notebooks/pnCCD/Correct_pnCCD_NBC.ipynb +++ b/notebooks/pnCCD/Correct_pnCCD_NBC.ipynb @@ -327,8 +327,8 @@ " try:\n", " gain_metadata = pnccd_cal.metadata(calibrations=[\"RelativeGainCCD\"])\n", " for mod, md in gain_metadata.items():\n", - " for cname, c_md in md.items():\n", - " pnccd_metadata[mod][cname] = c_md\n", + " pnccd_metadata[mod].update(md)\n", + "\n", " except CalCatError as e: # TODO: fix after getting new exceptions.\n", " warning(f\"{e} While asking for {pnccd_cal.illuminated_calibrations}\")\n", " warning(\"RelativeGainEPix100 is not retrieved from the calibration database. \"\n",