ska_parsecm
¶
Warning
the ska_parsecm package is discontinued and no longer supported. Instead use parse_cm <https://sot.github.io/parse_cm/>.
- ska_parsecm.ParseCM.parse_params(paramstr)[source]¶
Parse parameters key1=val1,key2=val2,… from
paramstr
Parameter values are cast to the first type (int, float, or str) that succeeds.
- Parameters:
paramstr – Comma separated string of key=val pairs
- Return type:
dict of key=val pairs
- ska_parsecm.ParseCM.read_backstop(filename)[source]¶
Read commands from backstop file.
Create dict with keys as follows for each command.
paramstr
is the actual string with comma-separated parameters andparams
is the corresponding dict of key=val pairs.date
char
time
float
cmd
char
params
dict
paramstr
char
tlmsid
char
msid
char
vcdu
int
step
int
scs
int
- Parameters:
filename – Backstop file name
- Returns:
list of dict for each command