From a6b873cfc6e4773a21a4eb1c7bad478c11a2822c Mon Sep 17 00:00:00 2001 From: Jean Connelly Date: Fri, 20 Oct 2023 15:47:23 -0400 Subject: [PATCH] Use ska_helpers.utils.convert_to_int_float_str to stop Deprecation warning --- kadi/commands/command_sets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kadi/commands/command_sets.py b/kadi/commands/command_sets.py index 1945605d..477f1b41 100644 --- a/kadi/commands/command_sets.py +++ b/kadi/commands/command_sets.py @@ -4,7 +4,7 @@ import astropy.units as u from cxotime import CxoTime -from parse_cm.common import _coerce_type as coerce_type +from ska_helpers.utils import convert_to_int_float_str from Quaternion import Quat from kadi.commands.core import CommandTable @@ -166,7 +166,7 @@ def cmd_set_command(*args, date=None): if key == "TLMSID": cmd["tlmsid"] = val else: - params[key] = coerce_type(val) + params[key] = convert_to_int_float_str(val) cmd["params"] = params return (cmd,) @@ -207,7 +207,7 @@ def get_cmds_from_event(date, event, params_str): args = [params_str] else: params_str = params_str.upper().split() - args = [coerce_type(p) for p in params_str] + args = [convert_to_int_float_str(p) for p in params_str] else: # Empty value means no args and implies params_str = np.ma.masked args = ()