From d7862b731f468ddee1b9aec3ee258c5a205545e8 Mon Sep 17 00:00:00 2001 From: Tim Plummer Date: Wed, 4 Sep 2024 12:15:38 -0600 Subject: [PATCH] Use IntEnum --- imap_processing/spice/geometry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imap_processing/spice/geometry.py b/imap_processing/spice/geometry.py index 26e285c9a..57766bf22 100644 --- a/imap_processing/spice/geometry.py +++ b/imap_processing/spice/geometry.py @@ -8,7 +8,7 @@ * Always return numpy arrays for vectorized calls. """ -from enum import Enum +from enum import IntEnum from typing import Union import numpy as np @@ -17,7 +17,7 @@ from imap_processing.spice.kernels import ensure_spice -class SpiceBody(Enum): +class SpiceBody(IntEnum): """Enum containing SPICE IDs for bodies that we use.""" # A subset of IMAP Specific bodies as defined in imap_wkcp.tf @@ -31,7 +31,7 @@ class SpiceBody(Enum): EARTH = 399 -class SpiceFrame(Enum): +class SpiceFrame(IntEnum): """Enum containing SPICE IDs for reference frames, defined in imap_wkcp.tf.""" # Standard SPICE Frames