We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c07c709 commit 34a66c7Copy full SHA for 34a66c7
pymc3/util.py
@@ -22,8 +22,6 @@
22
import numpy as np
23
import xarray
24
25
-from aesara.tensor.var import TensorVariable
26
-
27
from pymc3.exceptions import SamplingError
28
29
LATEX_ESCAPE_RE = re.compile(r"(%|_|\$|#|&)", re.MULTILINE)
@@ -169,10 +167,7 @@ def get_repr_for_variable(variable, formatting="plain"):
169
167
170
168
def get_var_name(var):
171
"""Get an appropriate, plain variable name for a variable."""
172
- if isinstance(var, TensorVariable):
173
- return super(TensorVariable, var).__str__()
174
- else:
175
- return str(var)
+ return getattr(var, "name", str(var))
176
177
178
def update_start_vals(a, b, model):
0 commit comments