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
52f19699
Commit
52f19699
authored
Sep 23, 2015
by
eric pellegrini
Browse files
Bug fix in AtomTransmutationWidget + cosmetic change
parent
33039a8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
MDANSE/Framework/Configurators/AtomTransmutationConfigurator.py
View file @
52f19699
...
@@ -91,7 +91,7 @@ class AtomTransmutationConfigurator(IConfigurator):
...
@@ -91,7 +91,7 @@ class AtomTransmutationConfigurator(IConfigurator):
if
not
isinstance
(
expression
,
basestring
):
if
not
isinstance
(
expression
,
basestring
):
raise
ConfiguratorError
(
"Wrong format for atom transmutation configurator."
,
self
)
raise
ConfiguratorError
(
"Wrong format for atom transmutation configurator."
,
self
)
if
UD_STORE
.
has_definition
(
trajConfig
[
"basename"
],
"atom_
transmuta
tion"
,
expression
):
if
UD_STORE
.
has_definition
(
trajConfig
[
"basename"
],
"atom_
selec
tion"
,
expression
):
ud
=
UD_STORE
.
get_definition
(
trajConfig
[
"basename"
],
"atom_selection"
,
expression
)
ud
=
UD_STORE
.
get_definition
(
trajConfig
[
"basename"
],
"atom_selection"
,
expression
)
self
.
transmutate
(
configuration
,
ud
[
"indexes"
],
element
)
self
.
transmutate
(
configuration
,
ud
[
"indexes"
],
element
)
else
:
else
:
...
...
MDANSE/Framework/Widgets/AtomSelectionWidget.py
View file @
52f19699
...
@@ -115,7 +115,7 @@ class AtomSelectionWidget(UserDefinitionWidget):
...
@@ -115,7 +115,7 @@ class AtomSelectionWidget(UserDefinitionWidget):
panel
=
sizerItem
.
GetWindow
()
panel
=
sizerItem
.
GetWindow
()
children
=
panel
.
GetChildren
()
children
=
panel
.
GetChildren
()
udName
=
children
[
0
]
udName
=
children
[
0
]
oldSelection
=
udName
.
GetStringSelection
()
oldSelection
=
udName
.
GetStringSelection
()
udName
.
SetItems
(
uds
)
udName
.
SetItems
(
uds
)
udName
.
SetStringSelection
(
oldSelection
)
udName
.
SetStringSelection
(
oldSelection
)
...
...
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