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
68b8af79
Commit
68b8af79
authored
Sep 23, 2015
by
eric pellegrini
Browse files
Bug fix when getting the value of atom selection and transmutation
widgets Bug fix when configuring partial charges from UD
parent
5c79895c
Changes
3
Hide whitespace changes
Inline
Side-by-side
MDANSE/Framework/Configurators/PartialChargeConfigurator.py
View file @
68b8af79
...
...
@@ -57,7 +57,7 @@ class PartialChargeConfigurator(IConfigurator):
trajConfig
=
configuration
[
self
.
_dependencies
[
'trajectory'
]]
if
UD_STORE
.
has_definition
(
trajConfig
[
"basename"
],
'partial_charges'
,
value
):
self
[
'charges'
]
=
UD_STORE
.
get_definition
(
trajConfig
[
"basename"
],
'partial_charges'
,
value
)
self
.
update
(
UD_STORE
.
get_definition
(
trajConfig
[
"basename"
],
'partial_charges'
,
value
)
)
else
:
if
isinstance
(
value
,
basestring
):
# Case of a python script
...
...
MDANSE/Framework/Widgets/AtomSelectionWidget.py
View file @
68b8af79
...
...
@@ -114,12 +114,8 @@ class AtomSelectionWidget(UserDefinitionWidget):
panel
=
sizerItem
.
GetWindow
()
children
=
panel
.
GetChildren
()
udName
=
children
[
0
]
oldSelection
=
udName
.
GetStringSelection
()
udName
.
SetItems
(
uds
)
udName
.
SetStringSelection
(
oldSelection
)
uds
.
append
(
udName
)
udName
=
children
[
0
]
uds
.
append
(
udName
.
GetStringSelection
())
if
not
uds
:
return
None
...
...
MDANSE/Framework/Widgets/AtomTransmutationWidget.py
View file @
68b8af79
...
...
@@ -83,11 +83,8 @@ class AtomTransmutationWidget(AtomSelectionWidget):
children
=
panel
.
GetChildren
()
udName
=
children
[
0
]
element
=
children
[
2
]
oldSelection
=
udName
.
GetStringSelection
()
udName
.
SetItems
(
uds
)
udName
.
SetStringSelection
(
oldSelection
)
uds
.
append
([
udName
,
element
.
GetStringSelection
])
uds
.
append
([
udName
.
GetStringSelection
()
,
element
.
GetStringSelection
])
if
not
uds
:
return
None
...
...
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