next up previous index
Next: Interaction Sets Up: Expressions Previous: Operators for Opus Expressions   Index


Aliasing

A new attribute name can be declared and initialized using an assignment statement:

lnpop = ln(urbansim.gridcell.population)

This is treated as an expression, which can occur in the list of expressions given to compute_variables. The value of the new alias is returned as the value of the expression if it's the last item on the list of variables and expressions.


next up previous index
Next: Interaction Sets Up: Expressions Previous: Operators for Opus Expressions   Index
info (at) urbansim.org