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
2a6ae018
Commit
2a6ae018
authored
Feb 27, 2020
by
Remi Perenon
Browse files
Fixing error in atom selections
parent
e947e209
Changes
1
Show whitespace changes
Inline
Side-by-side
Src/Framework/Configurators/AtomSelectionConfigurator.py
View file @
2a6ae018
...
...
@@ -86,7 +86,7 @@ class AtomSelectionConfigurator(IConfigurator):
trajConfig
=
self
.
_configurable
[
self
.
_dependencies
[
'trajectory'
]]
atoms
=
sorted
(
trajConfig
[
"universe"
].
atomList
(),
key
=
operator
.
attrgetter
(
'index'
))
selectedAtoms
=
[
atoms
[
idx
]
for
idx
in
indexes
]
selectedAtoms
=
[
atoms
[
idx
]
for
idx
in
self
[
"flatten_
indexes
"
]
]
self
[
"selection_length"
]
=
len
(
self
[
"flatten_indexes"
])
self
[
'indexes'
]
=
[[
idx
]
for
idx
in
self
[
"flatten_indexes"
]]
...
...
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