funkelab / blinx

2 stars 2 forks source link

Bug: if get_initial_parameter_guesses is passed parameter_ranges of size 1, max of -inf is returned #4

Open ahillsley opened 1 year ago

ahillsley commented 1 year ago

if parameter_ranges only contains repeats of the same value for each parameter, then an empty array is returned

ahillsley commented 1 year ago

Fixed by changing values[1:] to np.isfinite(values) in the find local maxima function. Problem was that for uniform parameter_ranges, values only contained a single number, thus returning an empty array