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
5f426e69
Unverified
Commit
5f426e69
authored
6 years ago
by
Gigg, Martyn Anthony
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Only sleep after doctests if free memory is below 50%
parent
2aa5f55c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/source/conf.py
+7
-3
7 additions, 3 deletions
docs/source/conf.py
with
7 additions
and
3 deletions
docs/source/conf.py
+
7
−
3
View file @
5f426e69
...
...
@@ -8,7 +8,7 @@ import os
from
sphinx
import
__version__
as
sphinx_version
import
sphinx_bootstrap_theme
# checked at cmake time
import
mantid
from
mantid
import
ConfigService
from
mantid
.kernel
import
ConfigService
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
...
...
@@ -106,9 +106,13 @@ except TypeError:
doctest_global_cleanup
=
"""
import time
from mantid.api import FrameworkManager
from mantid.kernel import MemoryStats
FrameworkManager.Instance().clear()
# sleep for short period to allow memory to be freed
time.sleep(2)
if MemoryStats().getFreeRatio() < 0.5:
# sleep for short period to allow memory to be freed
time.sleep(2)
"""
# -- Options for pngmath --------------------------------------------------
...
...
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