parameters: (class_name, param_names=None,
                                           derived_params=None,
                                           var_init_code=None, 
                                           extra_global_params=None,
                                           custom_body=None)
return_statement: return create_custom_model_class(
          class_name, genn_wrapper.InitVarSnippet.Custom, param_names,
          None, derived_params, body)
docstring: This helper function creates a custom InitVarSnippet class.
      See also:
      create_custom_neuron_class
      create_custom_weight_update_class
      create_custom_postsynaptic_class
      create_custom_current_source_class
      create_custom_sparse_connect_init_snippet_class
  
      Args:
      class_name      --  name of the new class
  
      Keyword args:
      param_names     --  list of strings with param names of the model
      derived_params  --  list of pairs, where the first member is string with
                          name of the derived parameter and the second MUST be
                          an instance of the pygenn.genn_wrapper.DerivedParamFunc class
      var_init_code   --  string with the variable initialization code
      extra_global_params     --  list of pairs of strings with names and
                                  types of additional parameters
      custom_body     --  dictionary with additional attributes and methods of
                          the new class
docstring_summary: This helper function creates a custom InitVarSnippet class.
      See also:
      create_custom_neuron_class
      create_custom_weight_update_class
      create_custom_postsynaptic_class
      create_custom_current_source_class
      create_custom_sparse_connect_init_snippet_class
docstring_tokens: This helper function creates a custom InitVarSnippet class . See also : create_custom_neuron_class create_custom_weight_update_class create_custom_postsynaptic_class create_custom_current_source_class create_custom_sparse_connect_init_snippet_class
function: def create_custom_init_var_snippet_class(class_name, param_names=None,
                                           derived_params=None,
                                           var_init_code=None, 
                                           extra_global_params=None,
                                           custom_body=None):
      """This helper function creates a custom InitVarSnippet class.
      See also:
      create_custom_neuron_class
      create_custom_weight_update_class
      create_custom_postsynaptic_class
      create_custom_current_source_class
      create_custom_sparse_connect_init_snippet_class
  
      Args:
      class_name      --  name of the new class
  
      Keyword args:
      param_names     --  list of strings with param names of the model
      derived_params  --  list of pairs, where the first member is string with
                          name of the derived parameter and the second MUST be
                          an instance of the pygenn.genn_wrapper.DerivedParamFunc class
      var_init_code   --  string with the variable initialization code
      extra_global_params     --  list of pairs of strings with names and
                                  types of additional parameters
      custom_body     --  dictionary with additional attributes and methods of
                          the new class
      """
  
      if not isinstance(custom_body, dict) and custom_body is not None:
          raise ValueError("custom_body must be an instance of dict or None")
  
      body = {}
  
      if var_init_code is not None:
          body["get_code"] = lambda self: dedent(var_init_code)
  
      if extra_global_params is not None:
          body["get_extra_global_params"] = \
              lambda self: EGPVector([EGP(egp[0], egp[1])
                                      for egp in extra_global_params])
  
      if custom_body is not None:
          body.update(custom_body)
  
      return create_custom_model_class(
          class_name, genn_wrapper.InitVarSnippet.Custom, param_names,
          None, derived_params, body)
function_tokens: def create_custom_init_var_snippet_class ( class_name , param_names = None , derived_params = None , var_init_code = None , extra_global_params = None , custom_body = None ) : if not isinstance ( custom_body , dict ) and custom_body is not None : raise ValueError ( "custom_body must be an instance of dict or None" ) body = { } if var_init_code is not None : body [ "get_code" ] = lambda self : dedent ( var_init_code ) if extra_global_params is not None : body [ "get_extra_global_params" ] = lambda self : EGPVector ( [ EGP ( egp [ 0 ] , egp [ 1 ] ) for egp in extra_global_params ] ) if custom_body is not None : body . update ( custom_body ) return create_custom_model_class ( class_name , genn_wrapper . InitVarSnippet . Custom , param_names , None , derived_params , body )