UserSpace.relref#

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

Set relative References

Set References in the relative 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 “relative” 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() absref()