def get_phi(self, C, mag, sites, nl0):
"""
Returns the within-event variability described in equation 13, line 3
"""
phi = C["sig3"] * np.ones(sites.vs30.shape)
> phi[sites.vs30measured] = 0.7
E IndexError: arrays used as indices must be of integer (or boolean) type
Fixes the error in https://github.com/GEMScienceTools/gmpe-smtk/runs/1899995211?check_suite_focus=true:
Plus some PEP8 fixes.