Update app/error_bar_utils.py

#41
by axelrvite - opened
Files changed (1) hide show
  1. app/error_bar_utils.py +3 -1
app/error_bar_utils.py CHANGED
@@ -82,7 +82,9 @@ def get_parameter_error_bounds(I,V,Rs,Rsh,n,J0,Jph):
82
  print(f"Erreur à l'étape j={j} : {e}")
83
  pass
84
  I_bruite_j = np.array(I_bruite_j)
85
- chi21 = np.sum((-I_bruite_j - (I)) ** 2)
 
 
86
  if chi21 < condition:
87
  n_intéressants.append(n_bruité[0][j])
88
  J0_intéressants.append(J0_bruité[0][j])
 
82
  print(f"Erreur à l'étape j={j} : {e}")
83
  pass
84
  I_bruite_j = np.array(I_bruite_j)
85
+ I_bruite_j_chi = [abs(x) for x in I_bruite_j]
86
+ I_chi = [abs(x) for x in I]
87
+ chi21 = np.sum(I_bruite_j_chi - I_chi) ** 2)
88
  if chi21 < condition:
89
  n_intéressants.append(n_bruité[0][j])
90
  J0_intéressants.append(J0_bruité[0][j])