Skip to content

Commit

Permalink
fix conversion between ArrayData and NonCanonicalCsr
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhang committed Oct 31, 2023
1 parent b404cb4 commit f7b0945
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions anndata/src/data/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ macro_rules! impl_into_array_data {
fn try_from(value: ArrayData) -> Result<Self, Self::Error> {
match value {
ArrayData::CsrNonCanonical(data) => data.try_into(),
ArrayData::CsrMatrix(data) => DynCsrNonCanonical::from(data).try_into(),
_ => bail!("Cannot convert {:?} to $ty CsrNonCanonical", value),
}
}
Expand Down

0 comments on commit f7b0945

Please sign in to comment.