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
86f78cbb
Commit
86f78cbb
authored
Aug 06, 2018
by
Whitfield, Ross
Browse files
Update autoreduce/reduce_HB2C.py notebooks/Single Crystal Reduction - NaCl.ipynb
parent
f9b875c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
autoreduce/reduce_HB2C.py
View file @
86f78cbb
...
...
@@ -53,8 +53,8 @@ else: # Single Crystal
+
bc
[::
4
,
2
::
4
]
+
bc
[
1
::
4
,
2
::
4
]
+
bc
[
2
::
4
,
2
::
4
]
+
bc
[
3
::
4
,
2
::
4
]
+
bc
[::
4
,
3
::
4
]
+
bc
[
1
::
4
,
3
::
4
]
+
bc
[
2
::
4
,
3
::
4
]
+
bc
[
3
::
4
,
3
::
4
])
vanadium
=
np
.
load
(
'/HFIR/HB2C/shared/autoreduce/vanadium.npy'
)
vanadium_mon
=
1
03054259
vanadium
=
np
.
load
(
'/HFIR/HB2C/shared/autoreduce/vanadium
_101567
.npy'
)
vanadium_mon
=
1
63519902
bc
=
bc
/
vanadium
*
vanadium_mon
/
mon
f
,
(
ax1
,
ax2
)
=
plt
.
subplots
(
2
,
figsize
=
(
8
,
4
))
ax1
.
set_title
(
u
'{}, {}, s2={:.2f}, duration={:.1f}s'
.
format
(
title
,
output_file
,
offset
,
duration
))
...
...
notebooks/Single Crystal Reduction - NaCl.ipynb
View file @
86f78cbb
...
...
@@ -45,27 +45,10 @@
``` python
LoadWANDSCD(IPTS=ipts, RunNumbers=26509, OutputWorkspace='norm',Grouping='4x4') # Vanadium
LoadWANDSCD(IPTS=ipts, RunNumbers='26640-27944', OutputWorkspace='data',Grouping='4x4')
```
%%%% Output: execute_result
MDHistoWorkspace
Title:
Dim 0: (y) 0.5 to 128.5 in 128 bins
Dim 1: (x) 0.5 to 960.5 in 960 bins
Dim 2: (scanIndex) 0.5 to 1305.5 in 1305 bins
Inelastic: ki-kf
Instrument: WAND (2018-Apr-01 to 2100-Jan-31)Instrument from: /home/rwp/mantid/instrument/WAND_Definition_2018_04_01.xml
Parameters from: /home/rwp/mantid/instrument/WAND_Parameters.xml
Run start: 2018-May-02 13:34:10
Run end: not available
Sample: a 5.6, b 5.6, c 5.6; alpha 90, beta 90, gamma 90
%% Cell type:markdown id: tags:
##### Integrate out a slice of data in the y (verticle) pixels. Only 2D can be plotted using `mantid` projections.
%% Cell type:code id: tags:
...
...
@@ -283,10 +266,16 @@

%% Cell type:code id: tags:
``` python
```
%% Cell type:code id: tags:
``` python
hk0_2 = IntegrateMDHistoWorkspace('HKL',P1Bin=[-0.5,0.5])
```
%% Cell type:code id: tags:
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