gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] ntpshmviz


From: Gary E. Miller
Subject: Re: [gpsd-dev] ntpshmviz
Date: Fri, 8 May 2015 19:20:11 -0700

Yo All!

> I was going to go in and fix the precision in ntpshmviz, but I can't
> seem get it to not crash as it is now in git head.  Not being a python
> guy, maybe someone can tell me what is wrong?

Jon Schlueter found the divide by zero, and DrDaemonEye pointed me to
some rounding issues.  ntpshmvis was rounding timespecs to 5 digits after
the decimal point, which is a problem when trying to display data that
has 9 digits after the decimal point.

I applied Jon's patch, changed rounding of 5 to 9, and used Numpy float128
to preserve the full precision of the inputs.  Not being a Python guy
it may be still not quite right, but it seems to work for me, based on 
very limited testing.

So pull and go forth testing.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
        address@hidden  Tel:+1(541)382-8588



reply via email to

[Prev in Thread] Current Thread [Next in Thread]