def set_specific_energy_type(self, specific_energy_type):
        '''
        Set whether to use the specific specific energy as an initial value or
        an additional component at each iteration.

        This only has an effect if a specific energy was specified during ``add_density_grid``.

        Parameters
        ----------
        specific_energy_type : str
            Can be ``'initial'`` (use only as initial value) or
            ``'additional'`` (add at every iteration)
        '''
        if ['initial', 'additional'] in specific_energy_type:
            self.specific_energy_type = specific_energy_type
        else:
            raise ValueError("specific_energy_type should be one of 'initial' or 'additional'")
dataset/ETHPy150Open hyperion-rt/hyperion/hyperion/conf/conf_files.py/RunConf.set_specific_energy_type/swapped operands of `in`