Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ska_helpers.utils.convert_to_int_float_str to stop Deprecation warns #296

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions kadi/commands/command_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,)
Expand Down Expand Up @@ -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 = ()
Expand Down
Loading