Skip to content

Commit 69c4c8e

Browse files
authored
Merge pull request #9060 from gem/warning
Fixed another pandas warning
2 parents 6e6f487 + 7adfd36 commit 69c4c8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openquake/hazardlib/site_amplification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ def _interp(self, ampl_code, imt_str, imls, coeff=None):
355355

356356
if len(coeff) == 1: # there is single coefficient for all levels
357357
ones = numpy.ones_like(imls)
358-
ialpha = float(coeff[imt_str]) * ones
358+
ialpha = coeff[imt_str].iloc[0] * ones
359359
try:
360-
isigma = float(coeff['sigma_' + imt_str]) * ones
360+
isigma = coeff['sigma_' + imt_str].iloc[0] * ones
361361
except KeyError:
362362
isigma = numpy.zeros_like(imls) # shape E
363363
else:

0 commit comments

Comments
 (0)