def apply_units_to_cache(self, data):
        """
        Apply units to :class:`ParameterizedXLS` data reader.
        """
        # parameter
        parameter_name = self.parameters['parameter']['name']
        parameter_units = str(self.parameters['parameter']['units'])
        data[parameter_name] *= UREG(parameter_units)
        # data
        self.parameters.pop('parameter')
        return super(ParameterizedXLS, self).apply_units_to_cache(data)
def apply_units_to_cache ( self , data ) : parameter_name = self . parameters [ 'parameter' ] [ 'name' ] parameter_units = str ( self . parameters [ 'parameter' ] [ 'units' ] ) data [ parameter_name ] *= UREG ( parameter_units ) self . parameters . pop ( 'parameter' ) return super ( ParameterizedXLS , self ) . apply_units_to_cache ( data )
Apply units to :class:`ParameterizedXLS` data reader.