Dear yt:
I am getting the error as below while plotting streamplots. Could you let me know what is causing this problem? drive link to my code (yt_frb_streamplot.py) is also below.
https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc
Traceback (most recent call last):
File "yt_frb_streamplot.py", line 67, in <module>
plt.streamplot(X, Y, U, V, density=2,color='blue') # Here density adjusts the density of streamlines
File "/state/partition1/anaconda/lib/python2.7/site-packages/matplotlib/pyplot.py", line 3339, in streamplot
zorder=zorder)
File "/state/partition1/anaconda/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 4204, in streamplot
zorder=zorder)
File "/state/partition1/anaconda/lib/python2.7/site-packages/matplotlib/streamplot.py", line 74, in streamplot
grid = Grid(x, y)
File "/state/partition1/anaconda/lib/python2.7/site-packages/matplotlib/streamplot.py", line 261, in __init__
assert np.allclose(x_row, x)
File "/state/partition1/anaconda/lib/python2.7/site-packages/numpy/core/numeric.py", line 2372, in allclose
res = all(isclose(a, b, rtol=rtol, atol=atol, equal_nan=equal_nan))
File "/state/partition1/anaconda/lib/python2.7/site-packages/numpy/core/numeric.py", line 2453, in isclose
return within_tol(x, y, atol, rtol)
File "/state/partition1/anaconda/lib/python2.7/site-packages/numpy/core/numeric.py", line 2436, in within_tol
result = less_equal(abs(x-y), atol + rtol * abs(y))
File "/state/partition1/anaconda/lib/python2.7/site-packages/yt/units/yt_array.py", line 732, in __radd__
lo = sanitize_units_add(self, left_object, "addition")
File "/state/partition1/anaconda/lib/python2.7/site-packages/yt/units/yt_array.py", line 134, in sanitize_units_add
raise YTUnitOperationError(op_string, inp.units, dimensionless)
yt.utilities.exceptions.YTUnitOperationError: The addition operator for YTArrays with units (km) and (1) is not well defined.