gEconpy.utilities.get_name#

gEconpy.utilities.get_name(x, base_name=False)#

Return the name of a string, TimeAwareSymbol, or sp.Symbol object.

Parameters:
xstr, or sp.Symbol

The object whose name is to be returned. If str, x is directly returned.

base_name: bool

If True, return TimeAwareSymbol base name (the name without any time suffix)

Returns:
name: str

The name of the object.