Skip to content
Snippets Groups Projects
Commit db0563fc authored by Alexander Pace's avatar Alexander Pace
Browse files

Stop casting likelihood to an integer

From what I can gather, there was a time when likelihood and gpstime
were integers for CWB events, and so there was an explicit casting of
them to integers. Brandon removed gpstime, but left in likelihood
before during ER6. Oops.
parent 8720b3bb
Branches fix_likelihood
No related tags found
No related merge requests found
......@@ -398,12 +398,6 @@ class Translator(object):
raise(NotImplemented)
def castData(self, data):
# convert ints to ints
# No longer casting gpstime to integer.
#for key in ['gpstime', 'likelihood']:
for key in ['likelihood']:
if data[key]:
data[key] = int(float(data[key]))
# convert floats to floats
for key in ['far']:
......
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