<div dir="ltr">I have not been able to sum an array; the array is created as follows<div><br></div><div>rpflux = np.array(rpflux, dtype=float)<br>rpflux=np.zeros(len(rptime),dtype='float64')<br>rpflux=np.genfromtxt(path,delimiter=',',dtype="float64",autostrip=True,skip_header=137,skip_footer=0, usecols=(19))<br></div><div>print(rpflux.astype('float64'))<br></div><div><pre style="box-sizing:border-box;overflow:auto;font-size:14px;padding:1px 0px;margin-top:0px;margin-bottom:0px;line-height:inherit;color:rgb(0,0,0);word-break:break-all;border:0px;border-radius:0px;white-space:pre-wrap;vertical-align:baseline">[3140. nan 2770. 3080. 3170. 3050. 3060.
3100. 2990. 3120. 3060. nan 3100. 3070.
3020. nan 3200. 3150. 3350. 2990. 2910.
2920. 3030. 3000. 2800. 2980. 2860. 2840.
2610. 2650. 2610. 2650. 2490. 2490. 2540.
2510. 2470. nan nan 35. nan 3099.
nan ] </pre><pre style="box-sizing:border-box;overflow:auto;font-size:14px;padding:1px 0px;margin-top:0px;margin-bottom:0px;line-height:inherit;color:rgb(0,0,0);word-break:break-all;border:0px;border-radius:0px;white-space:pre-wrap;vertical-align:baseline"><br></pre>print (np.sum(rpflux))<br>and <br>print (np.sum([rpflux]))<br>result in<br>'numpy.ndarray' object is not callable'</div><div><br></div><div>I have tried several alternatives, none of them work. Any suggestions would be appreciated.</div><div>Rudolf Baer</div><div><br></div><div>Mac Os 10.15.6, python 3.7</div></div>