Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
00cf9e3d
Commit
00cf9e3d
authored
7 years ago
by
Joseph Ramsay
Browse files
Options
Downloads
Patches
Plain Diff
Re #20816 Fixed table formatting in QueryMDWorkspace doctest
parent
25a8e140
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/source/algorithms/QueryMDWorkspace-v1.rst
+3
-7
3 additions, 7 deletions
docs/source/algorithms/QueryMDWorkspace-v1.rst
with
3 additions
and
7 deletions
docs/source/algorithms/QueryMDWorkspace-v1.rst
+
3
−
7
View file @
00cf9e3d
...
@@ -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:**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment