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
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of anndata.
(optional) I have confirmed this bug exists on the master branch of anndata.
Report
The AnnData Initializer verifies index and columns of the input X match var and obs, but does not do the same for layers resulting in possible bugs especially when initializing with layers but no X.
@amcpherson I think this should be ok, although I am not sure the correct intention for layers. The docs only say "Dictionary-like object with values of the same dimensions as X." At this point people might actually be relying on the behavior you describe since the docs only specify that the dimensions be the same. I would need a stronger counter-example or @flying-sheep should weigh in
Please make sure these conditions are met
Report
The AnnData Initializer verifies index and columns of the input X match var and obs, but does not do the same for layers resulting in possible bugs especially when initializing with layers but no X.
Code:
Versions
The text was updated successfully, but these errors were encountered: