def METHOD_NAME(
    self,
    beam_energy=None,
    camera_length=None,
    scan_rotation=None,
    convergence_angle=None,
    rocking_angle=None,
    rocking_frequency=None,
    exposure_time=None,
):
    """Set experimental parameters in metadata.
    Parameters
    ----------
    beam_energy : float
        Beam energy in keV
    camera_length: float
        Camera length in cm
    scan_rotation : float
        Scan rotation in degrees
    convergence_angle : float
        Convergence angle in mrad
    rocking_angle : float
        Beam rocking angle in mrad
    rocking_frequency : float
        Beam rocking frequency in Hz
    exposure_time : float
        Exposure time in ms.
    """
    md = self.metadata
    if beam_energy is not None:
        md.set_item("Acquisition_instrument.TEM.beam_energy", beam_energy)
    if camera_length is not None:
        md.set_item(
            "Acquisition_instrument.TEM.Detector.Diffraction.camera_length",
            camera_length,
        )
    if scan_rotation is not None:
        md.set_item("Acquisition_instrument.TEM.scan_rotation", scan_rotation)
    if convergence_angle is not None:
        md.set_item(
            "Acquisition_instrument.TEM.convergence_angle", convergence_angle
        )
    if rocking_angle is not None:
        md.set_item("Acquisition_instrument.TEM.rocking_angle", rocking_angle)
    if rocking_frequency is not None:
        md.set_item(
            "Acquisition_instrument.TEM.rocking_frequency", rocking_frequency
        )
    if exposure_time is not None:
        md.set_item(
            "Acquisition_instrument.TEM.Detector.Diffraction.exposure_time",
            exposure_time,
        )