I\'m computing a polyfit
multiple times during a program, and some of my inputs are np.nan
and are going to get the algorithm problems. I know thi
The error
Intel MKL ERROR: Parameter 4 was incorrect on entry to DELSD
occurs when you have Nan or Inf value in your input. Please check and impute it.
If a function decides to print an error message directly to stdout/stderr without using the normal Python error reporting mechanism (i.e. exception handling and warnings), there's little you can do to stop it from doing so. If it really annoys you, you can apparently suppress writing to stderr altogether. There is a solution in another SO question as to how to do it temporarily (e.g. just for this function): Suppress stdout / stderr print from Python functions. Obviously if you do this, you're also going to miss all the relevant outputs from this function, too, so use it with caution.