UserSpace.absref#

UserSpace.absref(**kwargs)[source]#

Set absolute References

Set References in the absolute reference mode by passing a pair of the References’ names and values as keyword arguments.

Setting a Reference by this method is equivalent to calling set_ref() by passing “absolute” to refmode.

Example

A and B are UserSpaces and foo is a Cells in B. The code blow assigns the Cells to References with the same names as the Cells in Space A:

>>> A.absref(foo=B.foo)

>>> A.foo
<Cells foo(x) in Model1.B>

By passing multiple keyword assignments, multiple References can be assigned. Below bar and baz are Cells in B:

>>> A.absref(bar=B.bar, baz=B.baz)

>>> A.bar
<Cells bar(x) in Model1.B>

>>> A.baz
<Cells baz(x) in Model1.B>

See also

set_ref() relref()