Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Dec 15, 2024
1 parent 5d4021c commit 1974af3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion anise-py/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ use pyo3::py_run;

mod astro;
mod constants;
mod utils;
mod rotations;
mod utils;

/// A Python module implemented in Rust.
#[pymodule]
Expand Down
4 changes: 2 additions & 2 deletions anise/src/math/rotation/dcm_py.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ impl DCM {
to_id: NaifId,
np_rot_mat_dt: Option<PyReadonlyArray2<'py, f64>>,
) -> PyResult<Self> {
if np_rot_mat.shape() != &[3, 3] {
if np_rot_mat.shape() != [3, 3] {
return Err(PyErr::new::<PyTypeError, _>("rotation matrix must be 3x3"));
}

let rot_mat = Matrix3::from_row_iterator(np_rot_mat.as_array().iter().copied());

let rot_mat_dt = if let Some(np_rot_mat_dt) = np_rot_mat_dt {
if np_rot_mat_dt.shape() != &[3, 3] {
if np_rot_mat_dt.shape() != [3, 3] {
return Err(PyErr::new::<PyTypeError, _>("rotation matrix must be 3x3"));
}
Some(Matrix3::from_row_iterator(
Expand Down
1 change: 0 additions & 1 deletion anise/src/naif/pck/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ impl BPCSummaryRecord {
}

/// Returns the start epoch of this BPC Summary
pub fn end_epoch(&self) -> Epoch {
<Self as NAIFSummaryRecord>::end_epoch(self)
}
Expand Down

0 comments on commit 1974af3

Please sign in to comment.