Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various house keeping things #181

Merged
merged 4 commits into from
Dec 16, 2024
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
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ updates:
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore: "
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
strategy:
matrix:
platform:
- runner: macos-12
- runner: macos-13
target: x86_64
- runner: macos-14
target: aarch64
Expand Down
4 changes: 2 additions & 2 deletions crates/lox-ephem/src/spk/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Spk {
array: &'a SpkType2Array,
initial_epoch: Epoch,
epoch: Epoch,
) -> Result<(&Vec<SpkType2Coefficients>, f64), DafSpkError> {
) -> Result<(&'a Vec<SpkType2Coefficients>, f64), DafSpkError> {
let seconds_from_record_start = epoch - initial_epoch;

let intlen = array.intlen as f64;
Expand Down Expand Up @@ -81,7 +81,7 @@ impl Spk {
&'a self,
epoch: Epoch,
segment: &'a SpkSegment,
) -> Result<(Vec<f64>, &Vec<SpkType2Coefficients>), DafSpkError> {
) -> Result<(Vec<f64>, &'a Vec<SpkType2Coefficients>), DafSpkError> {
let (coefficients, record) = match &segment.data {
super::parser::SpkArray::Type2(array) => {
let (record, fraction) = self.find_record(array, segment.initial_epoch, epoch)?;
Expand Down
2 changes: 1 addition & 1 deletion crates/lox-math/src/linear_algebra/tridiagonal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl<'a> Tridiagonal<'a> {
}
}

impl<'a> Index<Idx> for Tridiagonal<'a> {
impl Index<Idx> for Tridiagonal<'_> {
type Output = f64;

fn index(&self, (i, j): Idx) -> &Self::Output {
Expand Down
4 changes: 2 additions & 2 deletions crates/lox-math/src/math.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//! Module math provides common mathematical functions shared by many parts of the library.

use std::f64::consts::{PI, TAU};

use crate::types::units::{Arcseconds, Radians};

/// Module math provides common mathematical functions shared by many parts of the library.

/// Normalizes an angle `a` to the range [center-π, center+π).
pub fn normalize_two_pi(a: Radians, center: Radians) -> Radians {
a - 2.0 * PI * ((a + PI - center) / (2.0 * PI)).floor()
Expand Down
2 changes: 1 addition & 1 deletion crates/lox-space/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lox-space"
requires-python = ">=3.7"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
Expand Down
2 changes: 0 additions & 2 deletions crates/lox-time/src/test_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*/

#![cfg(test)]

use std::{path::PathBuf, sync::OnceLock};

use crate::{ut1::DeltaUt1Tai, utc::leap_seconds::BuiltinLeapSeconds};
Expand Down
Loading