File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ def jacp(*args, **kwargs):
613
613
n_inputs = model .len_rhs_sens // model .len_rhs
614
614
elif model .len_alg != 0 :
615
615
n_inputs = model .len_alg_sens // model .len_alg
616
- if model .bounds [0 ].shape [0 ] < model .len_alg + model . len_alg_sens :
616
+ if model .bounds [0 ].shape [0 ] == model .len_rhs_and_alg :
617
617
model .bounds = (
618
618
np .repeat (model .bounds [0 ], n_inputs + 1 ),
619
619
np .repeat (model .bounds [1 ], n_inputs + 1 ),
@@ -635,10 +635,10 @@ def jacp(*args, **kwargs):
635
635
)
636
636
else :
637
637
# take care if calculate_sensitivites used then not used
638
- if model .bounds [0 ].shape [0 ] > model .len_alg :
638
+ if model .bounds [0 ].shape [0 ] > model .len_rhs_and_alg :
639
639
model .bounds = (
640
- model .bounds [0 ][:model .len_alg ],
641
- model .bounds [1 ][:model .len_alg ],
640
+ model .bounds [0 ][:model .len_rhs_and_alg ],
641
+ model .bounds [1 ][:model .len_rhs_and_alg ],
642
642
)
643
643
if (model .mass_matrix is not None and
644
644
model .mass_matrix .shape [0 ] > model .len_rhs_and_alg ):
You can’t perform that action at this time.
0 commit comments