From 5645d626d2998ba62e1b19a88d6809c2ada7bf1f Mon Sep 17 00:00:00 2001 From: Ryan Medick Date: Sun, 19 May 2024 11:58:46 -0700 Subject: [PATCH] fix crash with print-od script --- oresat_configs/scripts/print_od.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oresat_configs/scripts/print_od.py b/oresat_configs/scripts/print_od.py index f8a5419..a6a7b34 100644 --- a/oresat_configs/scripts/print_od.py +++ b/oresat_configs/scripts/print_od.py @@ -6,7 +6,7 @@ import canopen from .. import Consts, OreSatConfig -from .._yaml_to_od import OD_DATA_TYPES +from .._yaml_to_od import STR_2_OD_DATA_TYPE PRINT_OD = "print the object dictionary out to stdout" @@ -59,7 +59,7 @@ def print_od(args: Optional[Namespace] = None) -> None: config = OreSatConfig(args.oresat) inverted_od_data_types = {} - for key, value in OD_DATA_TYPES.items(): + for key, value in STR_2_OD_DATA_TYPE.items(): inverted_od_data_types[value] = key arg_card = args.card.lower().replace("-", "_")