diff --git a/Code-C/power b/Code-C/power index 974d246..86f2cfb 100755 Binary files a/Code-C/power and b/Code-C/power differ diff --git a/Code-C/power.c b/Code-C/power.c index 0eff51c..7e62f21 100644 --- a/Code-C/power.c +++ b/Code-C/power.c @@ -26,7 +26,7 @@ void power(int **p, double a[]){ } int main(int argc , char** argv){ int **p = getRawDataArray(nRow, nCol); - //printArray(p,nRow,nCol); + printArray(p,nRow,nCol); double pw[8]; power(p,pw); writePowerData(pw,8); diff --git a/Py-Script/puissance.py b/Py-Script/puissance.py index c00af9e..2a16584 100644 --- a/Py-Script/puissance.py +++ b/Py-Script/puissance.py @@ -28,7 +28,11 @@ with open('rawData.csv', mode ='r') as file: resultat*=resultat for i in range(8): aire = 0 + flag = False for j in range(taille-1): aire += (resultat[j,i]+resultat[j+1,i]) / 2 * periode + if(aire!=0 and flag == False): + flag = True + print(i , j , resultat[j,i] , resultat[j+1,i], aire) res = aire/temps print("power c°" + str(i+1) + " : " + str(res)) \ No newline at end of file