Spaces:
Sleeping
Sleeping
Update app/error_bar_utils.py
#45
by axelrvite - opened
- app/error_bar_utils.py +3 -1
app/error_bar_utils.py
CHANGED
|
@@ -80,8 +80,10 @@ 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 |
-
chi21 = np.sum((
|
| 85 |
if chi21 < condition:
|
| 86 |
n_intéressants.append(n_bruité[0][j])
|
| 87 |
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 |
+
if I_bruite_j[0]*I[0]<=0:
|
| 84 |
+
I_bruite_j = -I_bruite_j
|
| 85 |
|
| 86 |
+
chi21 = np.sum((I_bruite_j - I) ** 2)
|
| 87 |
if chi21 < condition:
|
| 88 |
n_intéressants.append(n_bruité[0][j])
|
| 89 |
J0_intéressants.append(J0_bruité[0][j])
|