-
Notifications
You must be signed in to change notification settings - Fork 30
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
Time unit fixes #386
Time unit fixes #386
Conversation
My vote is yes |
Hmmm - I'm not sure I agree. When my digital clock says 11 o'clock, it's If move the T-slider from If a user sees time displayed as If we take a more advanced strategy later, and we display times differently depending on the units on the server, then we could consider some other behaviours (as well as showing the server-side units), but that is a whole different change. The negative values in that screenshot are correct. It's a FRAP movie where frames before the bleach event have negative timestamps. I ran the script #385 (comment) on this FRAP Image (user-3): |
An example from IDR where this will affect the formatting: https://idr.openmicroscopy.org/webclient/img_detail/10340802/
|
Following up on the comment from #386 (comment) and this morning's discussion, my biggest concern is about the custom nature of the proposed format. For usability, I agree it makes complete sense to convert the information into the most relevant unit i.e. 4 days is clearer and more explicit than 96h. It also has the benefit of keeping the time suffix compatible with ISO 8601 where the hour is bounded between 00 and 23. My main issue is that the proposed representation mixes unit written as words and unit separators which I found confusing. I would have almost expect something |
|
Looking at https://merge-ci.openmicroscopy.org/web/webclient/img_detail/83221/ |
@jburel Done |
The tooltip still displays 0hours but this can be fixed in a follow-up PR |
suggest to merge it and release as 0.11.1 |
Merging and tagging |
Fixes #385
This PR handles time values up to Days (previously, anything over 99 hours was not displayed correctly).
It also handles any time units.
Tested using script at #385 (comment) to set units for existing image.
When doing this for a sample (FRAP) image, timestamps that are less than a day, no 'days' are shown:
But when the time is longer than a day it is show like this (NB: open to suggestions for best way to format days)?
If the time is an exact number of days, e.g.
3 days
, we still showhh:mm:ss.sss
. Is it worth eliminating that if all those values are zero?cc @jburel