def onPlotBayesactSim3D(self, iEvent): plotBayesactSim = cPlotBayesactSim(self.m_FocusedFrame.m_PlotPanel) self.m_FocusedFrame.m_PlotBayesactSim = plotBayesactSim self.m_FocusedFrame.m_PlotBayesactSimThread = threading.Thread(target=plotBayesactSim.runOnPlot) self.m_FocusedFrame.m_PlotBayesactSimThread.daemon = True self.m_FocusedFrame.m_PlotBayesactSimThread.start()
def onPlotBayesactSim2D(self, iEvent): plotBayesactSim = cPlotBayesactSim(self.m_FocusedFrame, eEPA.evaluation, eEPA.potency) self.m_FocusedFrame.m_PlotBayesactSim = plotBayesactSim self.m_FocusedFrame.m_PlotBayesactSimThread = threading.Thread( target=plotBayesactSim.runOnPlot) self.m_FocusedFrame.m_PlotBayesactSimThread.daemon = True self.m_FocusedFrame.m_PlotBayesactSimThread.start()
def onPlotBayesactSim3D(self, iEvent): plotBayesactSim = cPlotBayesactSim(self.m_FocusedFrame, eEPA.evaluation, eEPA.potency, eEPA.activity) self.m_FocusedFrame.m_PlotBayesactSim = plotBayesactSim self.m_FocusedFrame.m_PlotBayesactSimThread = threading.Thread(target=plotBayesactSim.runOnPlot) self.m_FocusedFrame.m_PlotBayesactSimThread.daemon = True self.m_FocusedFrame.m_PlotBayesactSimThread.start()
def __init__(self): self.m_App = wx.App(redirect=False) self.m_PlotFrame = cPlt3D.cPlotFrame(None, title="Bayesact Simulator", size=(700, 550)) self.m_PlotFrame.initPanel(style=wx.SIMPLE_BORDER, pos=(0, 0), size=(700, 550)) self.m_PlotBayesactSim = cPlotBayesactSim(self.m_PlotFrame, eEPA.evaluation, eEPA.potency, eEPA.activity) self.m_Thread = None self.m_ThreadExists = False self.m_LearnerSamples = [] self.m_SimulatorSamples = []
def initPlotBayesactSim(self, iPlotPanel): self.m_PlotBayesactSim = cPlotBayesactSim(iPlotPanel)