Spaces:
Sleeping
Sleeping
Update app/error_bar_utils.py
#44
by axelrvite - opened
- app/error_bar_utils.py +2 -3
app/error_bar_utils.py
CHANGED
|
@@ -80,9 +80,8 @@ def get_parameter_error_bounds(I,V,Rs,Rsh,n,J0,Jph):
|
|
| 80 |
print(f"Erreur à l'étape j={j} : {e}")
|
| 81 |
pass
|
| 82 |
I_bruite_j = np.array(I_bruite_j)
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
chi21 = np.sum((I_bruite_j_chi - I_chi) ** 2)
|
| 86 |
if chi21 < condition:
|
| 87 |
n_intéressants.append(n_bruité[0][j])
|
| 88 |
J0_intéressants.append(J0_bruité[0][j])
|
|
|
|
| 80 |
print(f"Erreur à l'étape j={j} : {e}")
|
| 81 |
pass
|
| 82 |
I_bruite_j = np.array(I_bruite_j)
|
| 83 |
+
|
| 84 |
+
chi21 = np.sum((abs(I_bruite_j) - abs(I)) ** 2)
|
|
|
|
| 85 |
if chi21 < condition:
|
| 86 |
n_intéressants.append(n_bruité[0][j])
|
| 87 |
J0_intéressants.append(J0_bruité[0][j])
|