parameters: (self, egp_name, size=None,
                                             egp_dict=None)
docstring: Wrapper around GeNNModel.push_extra_global_param_to_device
  
          Args:
          egp_name    --  string with the name of the variable
          size        --  number of entries in EGP array
docstring_summary: Wrapper around GeNNModel.push_extra_global_param_to_device
docstring_tokens: Wrapper around GeNNModel . push_extra_global_param_to_device
function: def _push_extra_global_param_to_device(self, egp_name, size=None,
                                             egp_dict=None):
          """Wrapper around GeNNModel.push_extra_global_param_to_device
  
          Args:
          egp_name    --  string with the name of the variable
          size        --  number of entries in EGP array
          """
          # If no extra global parameters dictionary
          # is specified, use standard one
          if egp_dict is None:
              egp_dict = self.extra_global_params
  
          # Retrieve EGP from dictionary
          egp = egp_dict[egp_name]
  
          # If EGP is scalar, give error
          if egp.is_scalar:
              raise Exception("Only pointer-type extra global parameters "
                              "need to be pushed")
  
          # If deprecated size parameter is passed, give warning and
          if size is not None:
              warn("The size parameter is no longer "
                   "required and will be removed", DeprecationWarning)
              if size != len(egp.values):
                  raise ValueError("The size parameter doesn't match the "
                                   "size of the extra global parameter data")
  
          self._model.push_extra_global_param_to_device(self.name, egp_name,
                                                        len(egp.values))
function_tokens: def _push_extra_global_param_to_device ( self , egp_name , size = None , egp_dict = None ) : # If no extra global parameters dictionary # is specified, use standard one if egp_dict is None : egp_dict = self . extra_global_params # Retrieve EGP from dictionary egp = egp_dict [ egp_name ] # If EGP is scalar, give error if egp . is_scalar : raise Exception ( "Only pointer-type extra global parameters " "need to be pushed" ) # If deprecated size parameter is passed, give warning and if size is not None : warn ( "The size parameter is no longer " "required and will be removed" , DeprecationWarning ) if size != len ( egp . values ) : raise ValueError ( "The size parameter doesn't match the " "size of the extra global parameter data" ) self . _model . push_extra_global_param_to_device ( self . name , egp_name , len ( egp . values ) )