Merge branch 'master' of evefit.org:pyfa
This commit is contained in:
@@ -155,15 +155,18 @@ class GraphFrame(wx.Frame):
|
|||||||
self.subplot.grid(True)
|
self.subplot.grid(True)
|
||||||
|
|
||||||
for fit in self.fits:
|
for fit in self.fits:
|
||||||
success, status = view.getPoints(fit, values)
|
try:
|
||||||
if not success:
|
success, status = view.getPoints(fit, values)
|
||||||
#TODO: Add a pwetty statys bar to report errors with
|
if not success:
|
||||||
self.SetStatusText(status)
|
#TODO: Add a pwetty statys bar to report errors with
|
||||||
return
|
self.SetStatusText(status)
|
||||||
|
return
|
||||||
|
|
||||||
x, y = success, status
|
x, y = success, status
|
||||||
|
|
||||||
self.subplot.plot(x, y)
|
self.subplot.plot(x, y)
|
||||||
|
except:
|
||||||
|
self.SetStatusText("Invalid values in '%s'" % fit.name)
|
||||||
|
|
||||||
self.canvas.draw()
|
self.canvas.draw()
|
||||||
self.SetStatusText("")
|
self.SetStatusText("")
|
||||||
@@ -171,10 +174,7 @@ class GraphFrame(wx.Frame):
|
|||||||
event.Skip()
|
event.Skip()
|
||||||
|
|
||||||
def onFieldChanged(self, event):
|
def onFieldChanged(self, event):
|
||||||
try:
|
self.draw()
|
||||||
self.draw()
|
|
||||||
except:
|
|
||||||
self.SetStatusText("Invalid values")
|
|
||||||
|
|
||||||
def AppendFitToList(self, fitID):
|
def AppendFitToList(self, fitID):
|
||||||
sFit = service.Fit.getInstance()
|
sFit = service.Fit.getInstance()
|
||||||
|
|||||||
Reference in New Issue
Block a user