parse_cm.backstop.read_backstop#
- parse_cm.backstop.read_backstop(content)#
Read commands from backstop file or backstop-formatted string.
This function is DEPRECATED for new code. Instead use
kadi.commands.read_backstop.Note that the
BackstopTableobject returned by this function has acmdsproperty that can be used to convert to akadi.commands.CommandTable.Returns a BackstopTable object (derived from astropy Table) which has a row for each backstop command.
Example:
>>> #################################################################################### >>> # THIS FUNCTION IS DEPRECATED for new code, use kadi.commands.read_backstop instead. >>> #################################################################################### >>> >>> from parse_cm import read_backstop >>> backstop_lines = [' 2009:035:04:32:22.516 | 8941534 0 | SIMTRANS | POS= 89824, SCS= 128, STEP= 2244'] >>> read_backstop(backstop_lines) <BackstopTable masked=False length=1> date vcdu type tlmsid scs step params string168 int64 string64 string32 int64 int64 object --------------------- -------- -------- -------- ----- ----- ---------------------------------------- 2009:035:04:32:22.516 89415340 SIMTRANS None 128 2244 {'step': 2244, 'pos': 89824, 'scs': 128}
- Content:
Backstop file name or a list of backstop lines
- Returns:
BackstopTable