Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moving average block errors on NaN #375

Open
jacqui opened this issue Apr 10, 2014 · 1 comment
Open

moving average block errors on NaN #375

jacqui opened this issue Apr 10, 2014 · 1 comment
Assignees
Labels

Comments

@jacqui
Copy link
Collaborator

jacqui commented Apr 10, 2014

Apr 10 09:48:22 [ 4 ][ INFO ] map[Average:%!s(float64=NaN)]
2014/04/10 09:48:22 log.go:130: could not broadcast
2014/04/10 09:48:22 log.go:151: failed marshaling data into json

you can see this happen if you fire up the phone demo - the errors start immediately. they stop when the block starts receiving data from phones (e.g., valid numbers).

@jacqui jacqui added the bug label Apr 10, 2014
@jacqui jacqui self-assigned this Apr 10, 2014
@jacqui
Copy link
Collaborator Author

jacqui commented Apr 10, 2014

I made some progress on this issue, but unfortunately rolling out the solution I came up with would require us to change all float64 types to a new type (jsonFloat) wherever we want to properly handle NaN's in json. I checked it into a branch on my fork instead. To be continued, later...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant