Skip to content

Commit

Permalink
Use IntEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
subagonsouth committed Sep 4, 2024
1 parent 3bf36be commit d7862b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imap_processing/spice/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d7862b7

Please sign in to comment.