Add .astype() conversion to TableModel.__init__()
@@ -785,8 +785,10 @@ class TableModel(SpectralModel):
y = np.log10(self.values)
else:
y = self.values
- self.interpy = interp1d(loge,
- y,
+ # The type conversion is a fix for:
+ # https://travis-ci.org/gammapy/gammapy/jobs/210576260
+ self.interpy = interp1d(loge.astype(float),
+ y.astype(float),
fill_value=-np.Inf,
bounds_error=False,
kind='cubic')
