Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Whitfield, Ross
wand
Commits
7b2befad
Commit
7b2befad
authored
Apr 10, 2019
by
Whitfield, Ross
Browse files
Update calculate_HKL_range.py
parent
dc3beebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
calculate_HKL_range.py
View file @
7b2befad
...
...
@@ -6,10 +6,6 @@ Wproj = [0, 0, 1]
wavelength
=
1.488
BinWidth0
=
0.04
BinWidth1
=
0.04
BinWidth2
=
0.04
################################################################################
import
numpy
as
np
...
...
@@ -44,7 +40,7 @@ for rot in s1:
HKL_min
=
np
.
minimum
(
HKL_min
,
HKL
.
min
(
axis
=
1
))
HKL_max
=
np
.
maximum
(
HKL_max
,
HKL
.
max
(
axis
=
1
))
print
(
'{:>12} min:
max:bins'
)
print
(
'{:>12} {: .4}:{: .4}'
.
format
(
str
(
Uproj
),
HKL_min
[
0
],
HKL_max
[
0
]))
print
(
'{:>12} {: .4}:{: .4}'
.
format
(
str
(
Vproj
),
HKL_min
[
1
],
HKL_max
[
1
]))
print
(
'{:>12} {: .4}:{: .4}'
.
format
(
str
(
Wproj
),
HKL_min
[
2
],
HKL_max
[
2
]))
fmt
=
'{:>12} min:
{: .4f} max: {: .4f}'
print
(
fmt
.
format
(
str
(
Uproj
),
HKL_min
[
0
],
HKL_max
[
0
]))
print
(
fmt
.
format
(
str
(
Vproj
),
HKL_min
[
1
],
HKL_max
[
1
]))
print
(
fmt
.
format
(
str
(
Wproj
),
HKL_min
[
2
],
HKL_max
[
2
]))
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment