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” torefmode
.Example
A
andB
are UserSpaces andfoo
is a Cells inB
. The code blow assigns the Cells to References with the same names as the Cells in SpaceA
:>>> 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
andbaz
are Cells inB
:>>> A.absref(bar=B.bar, baz=B.baz) >>> A.bar <Cells bar(x) in Model1.B> >>> A.baz <Cells baz(x) in Model1.B>