Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
feat!: Update
strum
and ordered-float
dependencies and change Fro…
…m<LogProb> into TryFrom<LogProb> for NotNan<f64>. (#491) * Update `strum` crates Figure we'll need to change eventually. * Upgrade Ordered Float ordered-float ditched their From<f64> methods for NotNan and instead made them TryFrom<f64> (reem/rust-ordered-float@39f76bb). This change makes sense because From trait implementations generally shouldn’t panic, which the implementation did if the f64 was a NaN, and so TryFrom is more appropriate. This commit accounts for this change in the upgrade * Remove Deprecated Function Call `ndarray` has renamed `genrows()` to `rows()` * Formatting Fix * Update CHANGELOG * `From -> `TryFrom` The conversion from LogProb is not guaranteed to succeed, so we use `TryFrom` instead of `From`, as per the Rust docs: ```Note: The From trait must not fail. The From trait is intended for perfect conversions. If the conversion can fail or is not perfect, use TryFrom.``` Note this does change the API. * Apply suggestions from code review Co-authored-by: Adam Azarchs <adam.azarchs@10xgenomics.com> * Update CHANGELOG.md * Update Cargo.toml * Fix build issue. Co-authored-by: Adam Azarchs <adam.azarchs@10xgenomics.com> Co-authored-by: Johannes Köster <johannes.koester@uni-due.de>
- Loading branch information
1 parent
976e27d
commit 57ccf8f
Showing
5 changed files
with
26 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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