Skip to content

Commit

Permalink
Bump maximum supported ndarray version from 0.15 to 0.16 (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin authored Aug 21, 2024
1 parent 5473c8a commit e7f512e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **Breaking**: `Arc` instead of `Box` partial decoders
- Expand `set_partial_values` tests
- Specialise `set_partial_values` for `MemoryStore`
- Bump maximum supported `ndarray` version from 0.15 to 0.16

### Fixed
- `[async_]store_set_partial_values` no longer truncates
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ half = { version = "2.0.0", features = ["bytemuck"] }
inventory = "0.3.0"
itertools = "0.13.0"
monostate = "0.1.0"
ndarray = { version = "0.15.0", optional = true }
ndarray = { version = ">=0.15.0,<17", optional = true }
num = { version = "0.4.1" }
object_store = { version = ">=0.9.0,<0.11", default-features = false, optional = true }
opendal = { version = ">=0.46,<0.50", default-features = false, optional = true }
Expand Down
1 change: 1 addition & 0 deletions src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ impl<TStorage: ?Sized> Array<TStorage> {
#[cfg(feature = "ndarray")]
/// Convert an ndarray into a vec with standard layout
fn ndarray_into_vec<T: Clone, D: ndarray::Dimension>(array: ndarray::Array<T, D>) -> Vec<T> {
#[allow(deprecated)]
if array.is_standard_layout() {
array
} else {
Expand Down
1 change: 1 addition & 0 deletions src/array/codec/array_to_array/transpose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ fn transpose_array(

// Transpose the data
let array_transposed = array.permuted_axes(transpose_order);
#[allow(deprecated)]
if array_transposed.is_standard_layout() {
Ok(array_transposed.to_owned().into_raw_vec())
} else {
Expand Down

0 comments on commit e7f512e

Please sign in to comment.