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
4654d2ac
Commit
4654d2ac
authored
12 years ago
by
Nick Draper
Browse files
Options
Downloads
Patches
Plain Diff
re #6124 test for group was not working, brute force applied
parent
59e31173
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
Code/Mantid/Framework/PythonAPI/PythonAlgorithms/MaskWorkspaceToCalFile.py
+3
-2
3 additions, 2 deletions
...work/PythonAPI/PythonAlgorithms/MaskWorkspaceToCalFile.py
with
3 additions
and
2 deletions
Code/Mantid/Framework/PythonAPI/PythonAlgorithms/MaskWorkspaceToCalFile.py
+
3
−
2
View file @
4654d2ac
...
...
@@ -66,9 +66,10 @@ class MaskWorkspaceToCalFile(PythonAlgorithm):
group
=
masking_flag
else
:
group
=
not_masking_flag
if
type
(
det
)
==
DetectorGroup
:
detIDs
=
[]
try
:
detIDs
=
det
.
getDetectorIDs
()
e
lse
:
e
xcept
:
detIDs
=
[
det
.
getID
()]
for
id
in
detIDs
:
calFile
.
write
(
self
.
FormatLine
(
i
,
id
,
0.0
,
group
,
group
))
...
...
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