Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Whitfield, Ross
wand
Commits
fa217b91
Commit
fa217b91
authored
Apr 23, 2020
by
Whitfield, Ross
Browse files
Update reduce_HB2C2.py for python 3
Signed-off-by:
Ross Whitfield
<
whitfieldre@ornl.gov
>
parent
1cbde8f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
autoreduce/reduce_HB2C2.py
View file @
fa217b91
#!/usr/bin/env python2
#!/usr/bin/env python
from
__future__
import
(
absolute_import
,
division
,
print_function
,
unicode_literals
)
import
os
import
sys
import
h5py
...
...
@@ -6,7 +7,7 @@ import numpy as np
try
:
from
postprocessing.publish_plot
import
publish_plot
,
plot_heatmap
except
ImportError
:
from
finddata
import
publish_plot
from
finddata
import
publish_plot
,
plot_heatmap
filename
=
sys
.
argv
[
1
]
output_file
=
os
.
path
.
split
(
filename
)[
-
1
].
replace
(
'.nxs.h5'
,
''
)
...
...
@@ -64,7 +65,6 @@ def get_vanadium(run_number, npy=False):
if
powder
:
sys
.
path
.
append
(
"/opt/mantidnightly/bin"
)
from
mantid.simpleapi
import
LoadWAND
,
WANDPowderReduction
,
SavePlot1D
,
SaveFocusedXYE
,
Scale
data
=
LoadWAND
(
filename
,
Grouping
=
'4x4'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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