Skip to content
Snippets Groups Projects
Commit 0f4d79d2 authored by Heather Fong's avatar Heather Fong
Browse files

gstlal_fake_frames: fixed divide by 0 error by adding exception for gps-start-time=0

parent 6affe40e
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,10 @@ from glue.ligolw import utils as ligolw_utils
# Return the number of digits in a number
#
def digits(num):
return int(numpy.ceil(numpy.log10(float(num))))
if float(num) == 0:
return 1
else:
return int(numpy.ceil(numpy.log10(float(num))))
##
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment