(array, name, roffset, coffset, rows, cols, format)
| 649 | |
| 650 | |
| 651 | def 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 | |
| 669 | def array_to_xml(array, roffset, coffset, rows, cols, format): |
nothing calls this directly
no test coverage detected