Skip to content
Draft
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
8 changes: 0 additions & 8 deletions src/bsk_rl/sim/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,6 @@ def setup_ephem_object(self, priority: int = 988, **kwargs) -> None:
self.world_task_name, self.ephemConverter, ModelPriority=priority
)

def __del__(self) -> None:
"""Log when world is deleted and unload SPICE."""
super().__del__()
try:
self.gravFactory.unloadSpiceKernels()
except AttributeError:
pass


class EclipseWorldModel(WorldModel):
def __init__(self, *args, **kwargs) -> None:
Expand Down
7 changes: 0 additions & 7 deletions src/bsk_rl/utils/orbital.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,13 +551,6 @@ def r_BP_P(self) -> interp1d:
fill_value="extrapolate",
)

def __del__(self) -> None:
"""Unload spice kernels when object is deleted."""
try:
self.gravFactory.unloadSpiceKernels()
except AttributeError:
pass


def lla2ecef(lat: float, long: float, radius: float):
"""Project LLA to Earth Centered, Earth Fixed location.
Expand Down
4 changes: 0 additions & 4 deletions tests/unittest/sim/test_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ def test_setup_and_delete(self, grav_set, epoch_set):
world = WorldModel(MagicMock(), 1.0)
for setter in (grav_set, epoch_set):
setter.assert_called_once()
unload_function = MagicMock()
world.gravFactory = MagicMock(unloadSpiceKernels=unload_function)
del world
unload_function.assert_called_once()

@patch(baseworld + "_setup_world_objects", MagicMock())
@patch(module + "simIncludeGravBody", MagicMock())
Expand Down
Loading