Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[package]
name = "_core"
version = "1.1.0"
version = "1.1.2"
edition = "2021"
readme = "README.md"
license = "BSD-3-Clause"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "kete"
version = "1.1.0"
version = "1.1.2"
description = "Kete Asteroid Survey Tools"
readme = "README.md"
authors = [
Expand Down
2 changes: 1 addition & 1 deletion src/kete_core/src/propagation/kepler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?)
Expand Down
10 changes: 5 additions & 5 deletions src/kete_core/src/spice/spk_segments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down