-
Notifications
You must be signed in to change notification settings - Fork 16
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
Bug on DummyCNV. Only affects CoTeDe tests #141
Comments
BUGFIX #141, missing a round to define the seconds.
Hi @castelao, thanks for this and also for your work adding the Wod4CoTeDe class to wodpy. I guess this means that we can eventually remove the DummyCNV class and use the Wod4CoTeDe class instead? |
Hi @s-good, yes, that's the plan. But don't worry about this, you two already have plenty on your plate. I'll be pushing updates as I can move on. |
Hi @castelao, something just occurred to me - will the rounding of the number of seconds work if seconds >= 59.5? Will this get rounded up to 60, which isn't a valid number of seconds? |
Good call @s-good Let me try again: |
This solution looks really good. A lot more elegant than manually calculating the hours, minutes and seconds! |
Just thought, you will need to replace the hours = 0, minutes = 0 and seconds = 0 lines in the if statement with time = 0 or similar. |
Yes, I realized just after I submitted that. Thanks! |
Good to close here? |
It was missing a round to define the seconds at DummyCNV. Approximately 50% of the cases would have a 1 second off.
This only affects CoTeDe tests, and it is just a conceptual error. It shouldn't effectively change any result.
The text was updated successfully, but these errors were encountered: