From 4f4efbe0030fd10c37ee5ef759c5c20271e60bb4 Mon Sep 17 00:00:00 2001 From: Laura Sandoval Date: Tue, 27 Aug 2024 09:56:01 -0600 Subject: [PATCH] pr response --- imap_processing/spice/kernels.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/imap_processing/spice/kernels.py b/imap_processing/spice/kernels.py index 6830de06b..6f7ce1492 100644 --- a/imap_processing/spice/kernels.py +++ b/imap_processing/spice/kernels.py @@ -1,11 +1,12 @@ """Functions for furnishing and tracking SPICE kernels.""" -from contextlib import contextmanager import functools import logging import os +from collections.abc import Generator +from contextlib import contextmanager from pathlib import Path -from typing import Any, Callable, Optional, Generator +from typing import Any, Callable, Optional import numpy as np import spiceypy as spice @@ -342,7 +343,7 @@ def _average_quaternions(et_times: np.ndarray) -> NDArray: # Aggregate quaternions into a single matrix. aggregate += np.outer(body_quat, body_quat) - # Reference: "On Averaging Rotations" + # Reference: "On Averaging Rotations". # Link: https://link.springer.com/content/pdf/10.1023/A:1011129215388.pdf aggregate /= len(et_times)