Skip to content
Snippets Groups Projects
Commit 00cf9e3d authored by Joseph Ramsay's avatar Joseph Ramsay
Browse files

Re #20816 Fixed table formatting in QueryMDWorkspace doctest

parent 25a8e140
No related branches found
No related tags found
No related merge requests found
...@@ -45,15 +45,11 @@ Usage ...@@ -45,15 +45,11 @@ Usage
print("Table contains {0} rows".format(nRows)) print("Table contains {0} rows".format(nRows))
print("first 11 of them are:") print("first 11 of them are:")
print("--------------------------------------------------------------------------------------------------------------") print("--------------------------------------------------------------------------------------------------------------")
for name in col_names: print(' '.join('| {0:19}'.format(name) for name in col_names) + ' |')
print('| {0:19} '.format(name), end='')
print('|')
print("--------------------------------------------------------------------------------------------------------------") print("--------------------------------------------------------------------------------------------------------------")
for i in range(0,11): for i in range(0,11):
for name in col_names: print(' '.join('| {0:>19.4f}'.format(table.column(name)[i]) for name in col_names) + ' |')
col = table.column(name);
print('| {0:>19.4f} '.format(col[i]), end='')
print('|')
**Output:** **Output:**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment