Commit 53fcb0fb authored by eric pellegrini's avatar eric pellegrini
Browse files

Bug fix with ideal resolution that was not displayed

parent 55abae46
......@@ -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
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment