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
53fcb0fb
Commit
53fcb0fb
authored
Nov 17, 2015
by
eric pellegrini
Browse files
Bug fix with ideal resolution that was not displayed
parent
55abae46
Changes
2
Hide whitespace changes
Inline
Side-by-side
MDANSE/Framework/Widgets/InstrumentResolutionWidget.py
View file @
53fcb0fb
...
...
@@ -147,7 +147,7 @@ class InstrumentResolutionDialog(wx.Dialog):
resolution
.
set_kernel
(
self
.
_frequencies
,
self
.
_timeStep
)
self
.
_axis
.
clear
()
self
.
_axis
.
plot
(
self
.
_frequencies
,
resolution
.
frequencyWindow
)
self
.
_axis
.
set_xlabel
(
"frequency (THz)"
)
self
.
_axis
.
set_ylabel
(
"instrument resolution (a.u)"
)
...
...
@@ -229,4 +229,17 @@ class InstrumentResolutionConfigurator(IWidget):
self
.
_trajectory
=
DATA_CONTROLLER
[
datakey
]
self
.
_setResolution
.
Enable
(
True
)
\ No newline at end of file
self
.
_setResolution
.
Enable
(
True
)
if
__name__
==
"__main__"
:
app
=
wx
.
App
(
False
)
p
=
InstrumentResolutionDialog
()
p
.
SetSize
((
800
,
800
))
p
.
ShowModal
()
app
.
MainLoop
()
\ No newline at end of file
MDANSE/GUI/ComboWidgets/ConfigurationPanel.py
View file @
53fcb0fb
...
...
@@ -49,10 +49,10 @@ class ConfigurationPanel(wx.Panel):
def
validate
(
self
):
parameters
=
{}
parameters
.
update
(
self
.
get_value
())
try
:
parameters
.
update
(
self
.
get_value
())
except
ConfiguratorError
as
e
:
wx
.
MessageBox
(
self
,
str
(
e
),
"Invalid input"
,
style
=
wx
.
ICON_ERROR
|
wx
.
OK
)
return
False
finally
:
return
parameters
return
True
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