4.14.2.3. eqcorrscan.utils.sfile_util._int_conv

eqcorrscan.utils.sfile_util._int_conv(string)[source]

Convenience tool to convert from string to integer. If empty string return a 999 rather than an error.

>>> _int_conv('12')
12
>>> _int_conv('')
999