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
Scientific Software
MDANSE
Commits
4b5ef7ac
Commit
4b5ef7ac
authored
Mar 28, 2020
by
Remi Perenon
Browse files
Fixing ciruclar lattice bug
parent
e6522414
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Framework/QVectors/CircularLatticeQVectors.py
View file @
4b5ef7ac
...
...
@@ -46,7 +46,9 @@ class CircularLatticeQVectors(LatticeQVectors):
qMax
=
self
.
_configuration
[
"shells"
][
"last"
]
+
0.5
*
self
.
_configuration
[
"width"
][
"value"
]
uvMax
=
numpy
.
ceil
([
qMax
/
Vector
(
v
).
length
()
for
v
in
qVects
.
T
])
+
1
uvMax
=
numpy
.
ceil
([
qMax
/
Vector
(
v
).
length
()
for
v
in
qVects
.
T
])
+
1
# Enforce integers in uvMax
uvMax
=
uvMax
.
astype
(
numpy
.
int64
)
idxs
=
numpy
.
mgrid
[
-
uvMax
[
0
]:
uvMax
[
0
]
+
1
,
-
uvMax
[
1
]:
uvMax
[
1
]
+
1
]
...
...
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