Skip to content
Snippets Groups Projects
Commit f19a163d authored by Laura Stengel's avatar Laura Stengel
Browse files

adapted evalution script

parent 90ca5ab0
No related branches found
No related tags found
1 merge request!260i..
......@@ -68,11 +68,11 @@ def plotVolumeCurves(volume, volumeLabel, timeOrStep, timeOrStepLabel,lvRvLabelc
plt.xlabel(str(timeOrStepLabel))
plt.ylabel(str(volumeLabel))
plt.xlim(0, 800)
plt.ylim(110, 160)
plt.ylim(60, 180)
for i in range(len(volume)):
plt.plot(timeOrStep, volume[i], label = lvRvLabel[i] + str(coupledProblem[i]) + " cV" + str(cV) + "dCV" + str(dCS))
plt.legend(bbox_to_anchor=(1.8,0), loc='lower right', frameon=True)
#plt.show()
plt.legend( loc='lower right', frameon=True)#bbox_to_anchor=(1.8,0),
plt.show()
#plt.savefig(foldername + 'VolumePlot.png') #Todo anpassen an data/LogFileName
......@@ -80,8 +80,8 @@ def plotVolumeCurves(volume, volumeLabel, timeOrStep, timeOrStepLabel,lvRvLabelc
CoupledProblem = ["BiventricleCoarse","DeformedBiventricleCoarse"]
CoupledProblemDeformed = ["DeformedBiventricleCoarse"]
cell_values = [0, 1]
deformConcentrationStretch = [0, 1]
cell_values = [0] #, 1
deformConcentrationStretch = [0]#, 1
def checkIfFolderExists(path):
folderPath =pathToMakeFolders+path
......@@ -97,7 +97,8 @@ if __name__=="__main__":
for cP in CoupledProblem:
for cV in cell_values:
for dCS in deformConcentrationStretch:
foldername = path + pathExperiment + 'log' + str(cP) + '_cellV'+ str(cV) +'_deformCS' + str(dCS) + '.log'
foldername = 'DeformedRayleigh_l1.log'
#foldername = path + pathExperiment + 'log' + str(cP) + '_cellV'+ str(cV) +'_deformCS' + str(dCS) + '.log'
#foldernameDeformed = path + pathExperiment + 'log' + str(CoupledProblemDeformed[0]) + '_cellV' + str(cV) + '_deformCS' + str(dCS) + '.log'
vol, dataTime, dataStep = readDataFromLog(pathExperiment, foldername)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment