Esempio n. 1
0
pm = ProjectManager()
project = pm.loadProject(projFile)

print 'Successfully loaded project: ', project.getProjectName()

simDir = File(projFile.getParentFile(), "/simulations/"+simRef)
print
print "--- Reloading data from simulation in directory: %s"%simDir.getCanonicalPath()

plotFrame = PlotManager.getPlotterFrame("All voltage traces from simulation: "+simRef, False)

try:
    simData = SimulationData(simDir)
    simData.initialise()

    volt_traces = simData.getCellSegRefs(True)
    for trace in volt_traces:
        ds = simData.getDataSet(trace, SimPlot.VOLTAGE, False)
        plotFrame.addDataSet(ds)

except:
    print "Error analysing simulation data from: %s"%simDir.getCanonicalPath()
    print exc_info()

plotFrame.setVisible(True)