chan-csu / ADToolbox

AD Toolbox: A python package for modeling and optimization on anaerobic digestion process
1 stars 2 forks source link

Optimization_issue #15

Closed ale18032005 closed 3 weeks ago

ale18032005 commented 4 weeks ago

Traceback (most recent call last): File "..", line 466, in print(optimize.calculate_fit_stats(model=model,data=training_data)) File "...", line 654, in calculate_fit_stats x=np.array(x) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (250,) + inhomogeneous part.

ParsaGhadermazi commented 3 weeks ago

Hi Alejandra,

The issue is now fixed. It happened because calculate_fit_stats was designed to work with data that had exactly same shapes. Now this is fixed.

Best, Parsa