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
a52eda0d
Commit
a52eda0d
authored
9 years ago
by
Elliot Oram
Browse files
Options
Downloads
Patches
Plain Diff
Improved accuracy of Progress tracking
Refs #13971
parent
76f415d5
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
Framework/PythonInterface/plugins/algorithms/CylinderPaalmanPingsCorrection2.py
+4
-3
4 additions, 3 deletions
...ace/plugins/algorithms/CylinderPaalmanPingsCorrection2.py
with
4 additions
and
3 deletions
Framework/PythonInterface/plugins/algorithms/CylinderPaalmanPingsCorrection2.py
+
4
−
3
View file @
a52eda0d
...
@@ -145,11 +145,11 @@ class CylinderPaalmanPingsCorrection(PythonAlgorithm):
...
@@ -145,11 +145,11 @@ class CylinderPaalmanPingsCorrection(PythonAlgorithm):
dataA3
=
[]
dataA3
=
[]
dataA4
=
[]
dataA4
=
[]
data_prog
=
Progress
(
self
,
start
=
0.0
,
end
=
0.
6
,
nreports
=
len
(
self
.
_angles
))
data_prog
=
Progress
(
self
,
start
=
0.0
,
end
=
0.
85
,
nreports
=
len
(
self
.
_angles
))
for
angle
in
self
.
_angles
:
for
angle
in
self
.
_angles
:
(
A1
,
A2
,
A3
,
A4
)
=
self
.
_cyl_abs
(
angle
)
(
A1
,
A2
,
A3
,
A4
)
=
self
.
_cyl_abs
(
angle
)
logger
.
information
(
'
Angle : %f * successful
'
%
(
angle
))
logger
.
information
(
'
Angle : %f * successful
'
%
(
angle
))
data_prog
.
report
(
'
Populat
ing data for angle %f
'
%
(
angle
))
data_prog
.
report
(
'
Append
ing data for angle %f
'
%
(
angle
))
dataA1
=
np
.
append
(
dataA1
,
A1
)
dataA1
=
np
.
append
(
dataA1
,
A1
)
dataA2
=
np
.
append
(
dataA2
,
A2
)
dataA2
=
np
.
append
(
dataA2
,
A2
)
dataA3
=
np
.
append
(
dataA3
,
A3
)
dataA3
=
np
.
append
(
dataA3
,
A3
)
...
@@ -160,7 +160,7 @@ class CylinderPaalmanPingsCorrection(PythonAlgorithm):
...
@@ -160,7 +160,7 @@ class CylinderPaalmanPingsCorrection(PythonAlgorithm):
wrk_reports
=
5
wrk_reports
=
5
if
self
.
_use_can
:
if
self
.
_use_can
:
wrk_reports
=
8
wrk_reports
=
8
workflow_prog
=
Progress
(
self
,
start
=
0.
6
,
end
=
0.9
,
nreports
=
wrk_reports
)
workflow_prog
=
Progress
(
self
,
start
=
0.
85
,
end
=
1.0
,
nreports
=
wrk_reports
)
# Create the output workspaces
# Create the output workspaces
ass_ws
=
self
.
_output_ws_name
+
'
_ass
'
ass_ws
=
self
.
_output_ws_name
+
'
_ass
'
workflow_prog
.
report
(
'
Creating Workspace
'
)
workflow_prog
.
report
(
'
Creating Workspace
'
)
...
@@ -227,6 +227,7 @@ class CylinderPaalmanPingsCorrection(PythonAlgorithm):
...
@@ -227,6 +227,7 @@ class CylinderPaalmanPingsCorrection(PythonAlgorithm):
workflow_prog
.
report
(
'
Create GroupWorkpsace Output
'
)
workflow_prog
.
report
(
'
Create GroupWorkpsace Output
'
)
GroupWorkspaces
(
InputWorkspaces
=
'
,
'
.
join
(
workspaces
),
OutputWorkspace
=
self
.
_output_ws_name
)
GroupWorkspaces
(
InputWorkspaces
=
'
,
'
.
join
(
workspaces
),
OutputWorkspace
=
self
.
_output_ws_name
)
self
.
setPropertyValue
(
'
OutputWorkspace
'
,
self
.
_output_ws_name
)
self
.
setPropertyValue
(
'
OutputWorkspace
'
,
self
.
_output_ws_name
)
workflow_prog
.
report
(
'
Algorithm complete
'
)
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
...
...
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