arrays - Python: IndexError: index out of bounds -
I get this error: traceback (last call call): file "T_evoluzione_binarie .py", line 58, & lt; Module & gt; P1_001 = t_gw.p_evolution (p_001, m1_001, m2_001, ecc_010, tgw_e001) file "/ home / alessandra / dropbox / tesi all / Python / t_gw.py", line 40, p_evolution delta = p [i] ** (8. /3.)-(256./5.)*(2*np.pi)**(8./3.)*G**(5./3.)*c**(-5.) * I .) ** (-7./2) Index error: The index is out of bounds related to this limitation: p_evolution (p , M1, m2, e, t_coal): p_e = np.empty ((p.shape [0], 1)) T = Minimum (t_cool) category for i (p. Size [0]): delta = p [I] ** (8/3.)-(256./5.)*(2*np.pi)**(8./3.)*G**(5./3.)*c ** (- 5.) * (M1 [i] * M2 [i]) * (M1 [i] + M2 [i]) ** (- 1./3.)* (1- E [i] ** 2.) ** (-7./ 2) If delta and lieutenant; 0: p_e [i] = 0 elif e [i] == 1: p_e [ii] = 0 print 'eccc = 1', i second: p_e [i] = (p [ii] ** (8. / 3.) - (256./5.)*(2*np.pi)**(8) /3.)*G**(5./3.)*c**(-5.)* (M1 [i] * m2 [i]) * (m1 [i] + m2 [i]) ** (-1./3.)* (1- / 3.) * (...