You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this is the expected behavior it'd probably be good to mention it in the docstring. However I am inclined to think that the dictionary passed as coords should be left unmodified, it seems to be the behavior of a handful of plot_* functions that I've checked.
Hi @erocarrera and @OriolAbril, I am a new contributor. Based on your suggestions, I think it could be fixed by modifying the if statement in lines 270-271, so the original mutable object coords will not be modified. Since line 298 is an assignment operation, shallow copy should be enough.
if coords is None:
coords = {}
else:
coords = coords.copy()
If this is the expected behavior it'd probably be good to mention it in the docstring. However I am inclined to think that the dictionary passed as
coords
should be left unmodified, it seems to be the behavior of a handful ofplot_*
functions that I've checked.arviz/arviz/plots/ppcplot.py
Line 298 in f4a8d66
The text was updated successfully, but these errors were encountered: