Skip to content

Commit

Permalink
Replace OreSatId with Mission
Browse files Browse the repository at this point in the history
As with the other similar changes, this uses Mission.default() for
mission selection as OreSatId is has been removed.

Also fixed up the CI warning for out-of-date actions.
  • Loading branch information
ThirteenFish committed Nov 9, 2024
1 parent 42b2897 commit 6bb2f11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
path: resources/oresat-configs

- name: Set up Python 3.9
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.9"

Expand Down
4 changes: 2 additions & 2 deletions scripts/edl_cmd_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from typing import Any, Union

import canopen
from oresat_configs import OreSatConfig, OreSatId
from oresat_configs import Mission, OreSatConfig

sys.path.insert(0, os.path.abspath(".."))

Expand All @@ -29,7 +29,7 @@ def __init__(
):
super().__init__()

self.configs = OreSatConfig(OreSatId.ORESAT0_5)
self.configs = OreSatConfig(Mission.default())
self._hmac_key = hmac_key
self._timeout = 5
self._seq_num = seq_num
Expand Down
4 changes: 2 additions & 2 deletions tests/services/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from time import time

from olaf import CanNetwork, MasterNode, NodeStop
from oresat_configs import OreSatConfig, OreSatId
from oresat_configs import Mission, OreSatConfig

from oresat_c3 import C3State
from oresat_c3.services.state import StateService
Expand All @@ -14,7 +14,7 @@ class TestState(unittest.TestCase):
"""Test the C3 state service."""

def setUp(self):
config = OreSatConfig(OreSatId.ORESAT0_5)
config = OreSatConfig(Mission.default())
self.od = config.od_db["c3"]
fram_def = config.fram_def
network = CanNetwork("virtual", "vcan0")
Expand Down

0 comments on commit 6bb2f11

Please sign in to comment.