Draft
Conversation
Rust changes: - as_array() -> as_ndarray(), as_array_mut() -> as_ndarray_mut(), to_array_mut() -> to_ndarray_mut() across all source files - move_samples_from -> move_data with mts_data_movement_t - Array trait: removed data(), added device(), dtype(), as_dlpack() - create() now takes fill_value: MtsArray parameter - keys_to_samples/keys_to_properties now require fill_value argument - Added dlpk dependency for DLPack types - Cargo.toml points metatensor at git branch C/C++ changes: - calculator.cpp: rewrote all mts_labels_t usage for opaque API (mts_labels_create, mts_labels_dimensions, mts_labels_values, DLPack) - helpers.cpp: updated empty_array vtable with device/dtype/create - compute-soap.c, profiling.c: migrated data() -> as_dlpack, keys_to_samples/properties to new pointer-based labels API tox.ini: metatensor deps point to labels-values-array-clean branch
… .into() LabelValue changed from newtype to `type LabelValue = i32`. - LabelValue::new(x) -> (x as i32) - val.usize() -> val as usize - val.i32() -> val (identity) - usize_var.into() -> usize_var as i32
…ze to i32 - iter_fixed_size now yields [&i32; N], use & in destructuring patterns - builder.add with usize args needs explicit as i32 cast - .into() on usize/integer literals replaced with as i32 or _i32 suffix
- Fix all iter_fixed_size &i32 destructuring patterns - Fix all builder.add usize->i32 casts - Fix ArrayD -> ArcArray for TensorBlock::new (.into_shared()) - Fix remaining .into() and LabelValue::from() calls - Fix range expressions with &i32
…tead of field access)
…up, simplify label checks
This reverts commit 4ad7260.
Removes the direct dlpk git dependency from Cargo.toml (which caused cargo package to fail since dlpk has no crates.io version). Instead, use metatensor's re-export of the dlpk crate.
Reverts tox.ini to loose version constraints. CI workflows clone the labels-values-array-clean branch and pre-install metatensor packages before running tox. Disables build-wheels (packaging requires released metatensor).
…tox gets it from PyPI)
…example, disable packaging jobs
…ch), re-enable all CI jobs
…anch in featomic-torch cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
........ WIP.