obspy.core.event.base._bool

_bool(value)[source]

A custom bool() implementation that returns True for any value (including zero) of int and float, and for (empty) strings.