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
view_cp's attributes maintained a reference to view_cp_base, since the shallow copy does not copy the values of the attributes. So when view_cp.obsm was updated, view_cp_base got actualized.
This behaviour would not occur if we were lazy about generating the aligned mapping instances as suggested in #363 (comment)
The text was updated successfully, but these errors were encountered:
I believe this is underlying cause of scverse/scanpy#1239
Example
At first, normal enough. But on trying to assign:
Explanation
view_cp
's attributes maintained a reference toview_cp_base
, since the shallow copy does not copy the values of the attributes. So whenview_cp.obsm
was updated,view_cp_base
got actualized.This behaviour would not occur if we were lazy about generating the aligned mapping instances as suggested in #363 (comment)
The text was updated successfully, but these errors were encountered: