def add_derived_quantity(self, name, function):
        if name in self.quantities:
            raise KeyError(name + ' already exists')
        function(self.quantities)
dataset/ETHPy150Open hyperion-rt/hyperion/hyperion/grid/spherical_polar_grid.py/SphericalPolarGrid.add_derived_quantity/original