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
In upgrading to Python 3.11, I also upgraded to seaborn 0.13.0, and this docstring example is failing:
Traceback (most recent call last):
Cell In[3], line 17
gs.map_neighbors(mgs, radius=4000)
File ~/Documents/GitHub/Pyleoclim_util/pyleoclim/core/geoseries.py:446 in map_neighbors
fig, ax_d = mapping.scatter_map(neighborhood, fig=fig, gs_slot=gridspec_slot, hue=hue, size=size, marker=marker, projection=projection,
File ~/Documents/GitHub/Pyleoclim_util/pyleoclim/utils/mapping.py:1205 in scatter_map
_, ax_d = plot_scatter(df=df, x=x, y=y, hue_var=hue, size_var=size, marker_var=marker, ax_d=ax_d, proj=None, edgecolor=edgecolor,
File ~/Documents/GitHub/Pyleoclim_util/pyleoclim/utils/mapping.py:946 in plot_scatter
sns.scatterplot(data=hue_data, x=x, y=y, hue=hue_var, size=size_var,transform=transform, #change to transform=scatter_kwargs['transform']
File ~/opt/miniconda3/envs/pyleo/lib/python3.11/site-packages/seaborn/relational.py:624 in scatterplot
p.plot(ax, kwargs)
File ~/opt/miniconda3/envs/pyleo/lib/python3.11/site-packages/seaborn/relational.py:458 in plot
self.add_legend_data(ax, _scatter_legend_artist, kws, attrs)
File ~/opt/miniconda3/envs/pyleo/lib/python3.11/site-packages/seaborn/_base.py:1270 in add_legend_data
artist = func(label=label, **{"color": ".2", **common_kws, **level_kws})
File ~/opt/miniconda3/envs/pyleo/lib/python3.11/site-packages/seaborn/utils.py:922 in _scatter_legend_artist
if edgecolor == "face":
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
The problem goes away if I revert to seaborn 0.12.2, keeping all other packages the same. I opened an issue with seaborn. Until it is resolved, I will pin the seaborn version to 0.12.2.
I will also investigate why this was not caught by the CI test.
The text was updated successfully, but these errors were encountered:
In upgrading to Python 3.11, I also upgraded to seaborn 0.13.0, and this docstring example is failing:
The problem goes away if I revert to seaborn 0.12.2, keeping all other packages the same. I opened an issue with seaborn. Until it is resolved, I will pin the seaborn version to 0.12.2.
I will also investigate why this was not caught by the CI test.
The text was updated successfully, but these errors were encountered: