We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acc4c0d commit 0ee4dc5Copy full SHA for 0ee4dc5
1 file changed
src/spatialdata_plot/pl/utils.py
@@ -1078,8 +1078,9 @@ def _set_color_source_vec(
1078
table_name=table_name,
1079
)
1080
1081
- # When `table_name=` is explicit, an element column with the same name is
1082
- # shadowed by that choice (#620); drop the df origin so the table wins.
+ # Issue #620: when both the element's own dataframe and the chosen table
+ # contain a column with this name, an explicit `table_name=` resolves the
1083
+ # ambiguity — keep only the table origin and skip the multi-origin error below.
1084
explicit_table_shadows_df = table_name is not None and any(o.origin == "df" for o in origins)
1085
if explicit_table_shadows_df:
1086
origins = [o for o in origins if o.origin != "df"]
0 commit comments