add_group()

Contents

add_group()#

liesel.model.nodes.add_group(name, **kwargs)[source]#

Assigns the nodes and variables to a group.

Deprecated since version 0.2.2: Use the Group object directly. This function will be removed in v0.4.0.

Parameters:
  • name (str) – The name of the group.

  • kwargs (Node | Var) – The nodes and variables in the group with their keys in the group as keywords.

Return type:

Group

See also

Node.groups

The groups that a node is a part of.

Group

A group of nodes and variables.