Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
08db854a
Commit
08db854a
authored
Feb 10, 2021
by
Zhang, Chen
Committed by
Peterson, Peter
Feb 12, 2021
Browse files
update docstring as suggested
parent
884f9431
Changes
1
Hide whitespace changes
Inline
Side-by-side
Framework/PythonInterface/mantid/utils/absorptioncorrutils.py
View file @
08db854a
...
...
@@ -159,7 +159,14 @@ def __load_cached_data(cache_file_name, sha1, abs_method="", prefix_name=""):
# func(wksp_name: str, abs_method:str, cache_dir="")
def
abs_cache
(
func
):
"""decorator to make the caching process easier
NOTE: this decorator should only be used on function calls where
- the first positional arguments is the workspace name
- the second positional arguments is the absorption calculation method
WARNING: currently this decorator should only be used on
calc_absorption_corr_using_wksp
example:
without caching:
SNSPowderReduction successful, Duration 5 minutes 53.54 seconds
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment