Code: Alles auswählen
return p[0]*(1-np.exp(-(p[2]*x)**p[4])) + p[1]*(1- np.exp(-(p[3]*(x))**p[5] ))
TypeError: 'int' object is unsubscriptable
Code: Alles auswählen
return p[0]*(1-np.exp(-(p[2]*x)**p[4])) + p[1]*(1- np.exp(-(p[3]*(x))**p[5] ))
TypeError: 'int' object is unsubscriptable
wie kann ich der Inhalt in einem anderen Array speichern?PPS: Sei dir bewusst das "y = data_array" keine Kopie von "data_array" an "y" gebunden wird!
Code: Alles auswählen
t = numpy.array([67., 88, 104, 127, 138, 160, 169, 188, 196, 215, 240, 247, 271, 278, 303, 305, 321, 337, 353])
Code: Alles auswählen
y = np.array(data_array)