MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / table_like_struct_to_xml

Function table_like_struct_to_xml

_pydevd_bundle/pydevd_vars.py:651–666  ·  view source on GitHub ↗
(array, name, roffset, coffset, rows, cols, format)

Source from the content-addressed store, hash-verified

649
650
651def table_like_struct_to_xml(array, name, roffset, coffset, rows, cols, format):
652 _, type_name, _ = get_type(array)
653 if type_name == "ndarray":
654 array, metaxml, r, c, f = array_to_meta_xml(array, name, format)
655 xml = metaxml
656 format = "%" + f
657 if rows == -1 and cols == -1:
658 rows = r
659 cols = c
660 xml += array_to_xml(array, roffset, coffset, rows, cols, format)
661 elif type_name == "DataFrame":
662 xml = dataframe_to_xml(array, name, roffset, coffset, rows, cols, format)
663 else:
664 raise VariableError("Do not know how to convert type %s to table" % (type_name))
665
666 return "<xml>%s</xml>" % xml
667
668
669def array_to_xml(array, roffset, coffset, rows, cols, format):

Callers

nothing calls this directly

Calls 4

array_to_meta_xmlFunction · 0.85
array_to_xmlFunction · 0.85
dataframe_to_xmlFunction · 0.85
VariableErrorClass · 0.85

Tested by

no test coverage detected