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
dc626564
Commit
dc626564
authored
9 years ago
by
Anton Piccardo-Selg
Browse files
Options
Downloads
Patches
Plain Diff
Refs #14241 Update to adding runs
parent
841047ce
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
scripts/SANS/ISISCommandInterface.py
+22
-10
22 additions, 10 deletions
scripts/SANS/ISISCommandInterface.py
with
22 additions
and
10 deletions
scripts/SANS/ISISCommandInterface.py
+
22
−
10
View file @
dc626564
...
...
@@ -1441,7 +1441,19 @@ def AddRuns(runs, instrument ='sans2d', saveAsEvent=False, binning = "Monitors",
Method to expose the add_runs functionality for custom scripting.
@param runs: a list with the requested run numbers
@param instrument: the name of the selected instrument
@param binning: the where to get the binnings from. This can either be
"
Monitors
@param saveAsEvent: when adding event-type data, then this can be stored as event-type data
@param binning: where to get the binnings from. This is relevant when adding Event-type data.
The property can be set to
"
Monitors
"
in order to emulate the binning of the monitors or to a
string list with the same format that is used for the Rebin algorithm. This property is ignored
when saving as event data.
@param isOverlay: sets if the the overlay mechanism should be used when the saveAsEvent flag is set
@param time_shifts: provides additional time shifts if the isOverlay flag is specified. The time shifts are specifed
in a string list. Either time_shifts is not used or a list with times in secomds. Note that there
has to be one entry fewer than the number of workspaces to add.
@param defType: the file type
@param rawTypes: the raw types
@param lowMem: if the lowMem option should be used
@returns a success message
'''
# Need at least two runs to work
if
len
(
runs
)
<
1
:
...
...
@@ -1451,15 +1463,15 @@ def AddRuns(runs, instrument ='sans2d', saveAsEvent=False, binning = "Monitors",
if
time_shifts
is
None
:
time_shifts
=
[]
add_runs
(
runs
=
runs
,
inst
=
instrument
,
defType
=
defType
,
rawTypes
=
rawTypes
,
lowMem
=
lowMem
,
binning
=
binning
,
saveAsEvent
=
saveAsEvent
,
isOverlay
=
isOverlay
,
time_shifts
=
time_shifts
)
return
add_runs
(
runs
=
runs
,
inst
=
instrument
,
defType
=
defType
,
rawTypes
=
rawTypes
,
lowMem
=
lowMem
,
binning
=
binning
,
saveAsEvent
=
saveAsEvent
,
isOverlay
=
isOverlay
,
time_shifts
=
time_shifts
)
...
...
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