Suppress RuntimeWarning in interp2d

This commit is contained in:
usov_i 2021-12-23 15:37:05 +01:00
parent 741a09819c
commit 53ceac21aa

View File

@ -4,6 +4,7 @@ import itertools
import os
import tempfile
import types
import warnings
import numpy as np
from bokeh.io import curdoc
@ -343,6 +344,8 @@ def create():
ov_param_plot_scatter_source.data.update(x=x, y=y, param=par)
try:
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=RuntimeWarning)
interp_f = interpolate.interp2d(x, y, par)
x1, x2 = min(x), max(x)
y1, y2 = min(y), max(y)