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

Fix NaNs if solar is 0 #19

Merged
merged 2 commits into from
Sep 10, 2016
Merged

Fix NaNs if solar is 0 #19

merged 2 commits into from
Sep 10, 2016

Conversation

mattjgalloway
Copy link
Contributor

Fixes #14.

/cc @Paul-Reed

@Paul-Reed
Copy link
Member

@mattjgalloway just applied your diff and I'm seeing --% shouldn't it be 0%

zero

@mattjgalloway
Copy link
Contributor Author

I decided on -- %, because it sort of doesn't make sense to be 0% (which is why it's coming out as NaN) as it's 0/0. Is that 0? Is it infinity? I liked the "-- %" because I trained myself to look at those numbers and see 0% export as "awesome!" and 0% direct as "oh that's terrible". So the "-- %" made me realise that I should ignore these numbers as there's no generation.

@Paul-Reed
Copy link
Member

Technically, yes you are correct, but I wonder if the end user would expect to see 0% ?
I'll stick a post in the forum and try to get a consensus opinion.

@mattjgalloway
Copy link
Contributor Author

Sure - yeh let's see what others think. I think it's definitely worth distinguishing it from actually 0% somehow. It could be we dim it out for example?

@Paul-Reed
Copy link
Member

Thanks Matt, added as --%

@Paul-Reed Paul-Reed merged commit 7aeec74 into emoncms:9.0 Sep 10, 2016
@glynhudson
Copy link
Member

Great, sounds good to me. Thanks!

  • sent from my mobile device

On 10 Sep 2016 15:53, "Paul Reed" notifications@github.com wrote:

Merged #19 #19.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#19 (comment), or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAuUPAw8bthpxKkF_BG97sYYtnEBDvwbks5qorY8gaJpZM4J42lT
.

@mattjgalloway mattjgalloway deleted the fix_nan branch September 10, 2016 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants