diff --git a/CHANGELOG.md b/CHANGELOG.md index dec18fd..a0a1a3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v1.1.2] + + ### Fixed + - Unused parens removed from kepler.rs + ## [v1.1.1] ### Added - Add in support for MPC Extended Packed format - + ## [v1.1.0] Announcement: Author of Kete (Dar Dahlen) has left IPAC Caltech to begin a PhD at diff --git a/Cargo.toml b/Cargo.toml index ed83e62..ff66074 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "_core" -version = "1.1.0" +version = "1.1.2" edition = "2021" readme = "README.md" license = "BSD-3-Clause" diff --git a/pyproject.toml b/pyproject.toml index 0392c71..3217c61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "kete" -version = "1.1.0" +version = "1.1.2" description = "Kete Asteroid Survey Tools" readme = "README.md" authors = [ diff --git a/src/kete_core/src/propagation/kepler.rs b/src/kete_core/src/propagation/kepler.rs index 338b1c5..b7555bf 100644 --- a/src/kete_core/src/propagation/kepler.rs +++ b/src/kete_core/src/propagation/kepler.rs @@ -51,7 +51,7 @@ pub fn compute_eccentric_anomaly(ecc: f64, mean_anom: f64, peri_dist: f64) -> Ke } ecc => { // Hyperbolic - let f = |ecc_anom: f64| (ecc * ecc_anom.sinh() - ecc_anom - mean_anom); + let f = |ecc_anom: f64| ecc * ecc_anom.sinh() - ecc_anom - mean_anom; let d = |ecc_anom: f64| -1.0 + ecc * ecc_anom.cosh(); let guess = (mean_anom / ecc).asinh(); Ok(newton_raphson(f, d, guess, 1e-11)?) diff --git a/src/kete_core/src/spice/spk_segments.rs b/src/kete_core/src/spice/spk_segments.rs index 3b2c88e..a3877c6 100644 --- a/src/kete_core/src/spice/spk_segments.rs +++ b/src/kete_core/src/spice/spk_segments.rs @@ -334,7 +334,7 @@ struct Type2RecordView<'a> { impl SpkSegmentType2 { #[inline(always)] - fn get_record(&self, idx: usize) -> Type2RecordView { + fn get_record(&self, idx: usize) -> Type2RecordView<'_> { unsafe { let vals = self .array @@ -426,7 +426,7 @@ struct Type3RecordView<'a> { impl SpkSegmentType3 { #[inline(always)] - fn get_record(&self, idx: usize) -> Type3RecordView { + fn get_record(&self, idx: usize) -> Type3RecordView<'_> { unsafe { let vals = self .array @@ -526,7 +526,7 @@ struct Type9RecordView<'a> { impl SpkSegmentType9 { #[inline(always)] - fn get_record(&self, idx: usize) -> Type9RecordView { + fn get_record(&self, idx: usize) -> Type9RecordView<'_> { unsafe { let rec = self.array.data.get_unchecked(idx * 6..(idx + 1) * 6); Type9RecordView { @@ -741,7 +741,7 @@ struct Type13RecordView<'a> { impl SpkSegmentType13 { #[inline(always)] - fn get_record(&self, idx: usize) -> Type13RecordView { + fn get_record(&self, idx: usize) -> Type13RecordView<'_> { unsafe { let rec = self.array.data.get_unchecked(idx * 6..(idx + 1) * 6); Type13RecordView { @@ -853,7 +853,7 @@ struct Type18RecordView<'a> { impl SpkSegmentType18 { #[inline(always)] - fn get_record(&self, idx: usize) -> Type18RecordView { + fn get_record(&self, idx: usize) -> Type18RecordView<'_> { unsafe { let rec = self .array