Skip to content

Commit

Permalink
added todo
Browse files Browse the repository at this point in the history
  • Loading branch information
laspsandoval committed Aug 22, 2024
1 parent f2d8319 commit 5a41884
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions imap_processing/tests/spice/test_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
@pytest.fixture()
def kernels(spice_test_data_path):
"""List SPICE kernels."""
# TODO: remove this fixture after ensure_spice update.
kernels = [str(file) for file in spice_test_data_path.iterdir()]
return kernels


@pytest.fixture()
def et_times(kernels):
"""Tests get_et_times function."""
# TODO: remove spice.furnsh(kernels) after ensure_spice update.
spice.furnsh(kernels)

file, _, _, _ = spice.kdata(0, "ck")
Expand Down Expand Up @@ -103,6 +105,7 @@ def test_ensure_spice_key_error():

def test_average_quaternions(et_times, kernels):
"""Tests average_quaternions function."""
# TODO: remove spice.furnsh(kernels) after ensure_spice update.
spice.furnsh(kernels)
q_avg = _average_quaternions(et_times)

Expand All @@ -113,6 +116,7 @@ def test_average_quaternions(et_times, kernels):

def test_create_rotation_matrix(et_times, kernels):
"""Tests create_rotation_matrix function."""
# TODO: remove spice.furnsh(kernels) after ensure_spice update.
spice.furnsh(kernels)
rotation_matrix = _create_rotation_matrix(et_times)
q_avg = _average_quaternions(et_times)
Expand All @@ -129,6 +133,7 @@ def test_create_rotation_matrix(et_times, kernels):

def test_create_pointing_frame(spice_test_data_path, kernels):
"""Tests create_pointing_frame function."""
# TODO: remove spice.furnsh(kernels) after ensure_spice update.
spice.furnsh(kernels)
ck_kernel, _, _, _ = spice.kdata(0, "ck")
et_start, et_end, et_times = _get_et_times(ck_kernel)
Expand Down

0 comments on commit 5a41884

Please sign in to comment.