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
a4c89d8f
Commit
a4c89d8f
authored
8 years ago
by
David Fairbrother
Browse files
Options
Downloads
Patches
Plain Diff
Re #18643 Fixed an issue with a deleted workspace being deleted again
parent
7bd5e1d0
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/Diffraction/isis_powder/routines/common.py
+2
-2
2 additions, 2 deletions
scripts/Diffraction/isis_powder/routines/common.py
scripts/Diffraction/isis_powder/routines/focus.py
+3
-3
3 additions, 3 deletions
scripts/Diffraction/isis_powder/routines/focus.py
with
5 additions
and
5 deletions
scripts/Diffraction/isis_powder/routines/common.py
+
2
−
2
View file @
a4c89d8f
...
...
@@ -116,8 +116,8 @@ def generate_run_numbers(run_number_string):
:return: A list of run numbers generated from the string
"""
# Check its not a single run
if
isinstance
(
run_number_string
,
int
)
and
run_number_string
.
isdigit
()
:
return
[
int
(
run_number_string
)]
# Cast into a list and return
if
isinstance
(
run_number_string
,
int
):
return
[
int
(
run_number_string
)]
# Cast into a list and return
# If its a string we must parse it
run_number_string
=
run_number_string
.
strip
()
...
...
This diff is collapsed.
Click to expand it.
scripts/Diffraction/isis_powder/routines/focus.py
+
3
−
3
View file @
a4c89d8f
...
...
@@ -47,15 +47,15 @@ def _focus_one_ws(ws, run_number, instrument, perform_vanadium_norm):
common
.
remove_intermediate_workspace
(
input_workspace
)
common
.
remove_intermediate_workspace
(
aligned_ws
)
common
.
remove_intermediate_workspace
(
focused_ws
)
common
.
remove_intermediate_workspace
(
c
alibrat
ed_spectra
)
common
.
remove_intermediate_workspace
(
c
ropp
ed_spectra
)
return
processed_nexus_files
def
_apply_vanadium_corrections
(
instrument
,
run_number
,
input_workspace
,
perform_vanadium_norm
):
run_details
=
instrument
.
_get_run_details
(
run_number_string
=
run_number
)
converted_ws
=
mantid
.
ConvertUnits
(
InputWorkspace
=
input_workspace
,
OutputWorkspace
=
input_workspace
,
Target
=
"
TOF
"
)
split_data_spectra
=
common
.
extract_ws_spectra
(
converted_ws
)
input_workspace
=
mantid
.
ConvertUnits
(
InputWorkspace
=
input_workspace
,
OutputWorkspace
=
input_workspace
,
Target
=
"
TOF
"
)
split_data_spectra
=
common
.
extract_ws_spectra
(
input_workspace
)
if
perform_vanadium_norm
:
processed_spectra
=
_divide_by_vanadium_splines
(
spectra_list
=
split_data_spectra
,
...
...
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