-
Notifications
You must be signed in to change notification settings - Fork 31
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
implemented get_timestamps() from timeIncrement attribute #589
Conversation
Thanks @JensWendt. |
Done! |
Hold! no merging yet, please. EDIT: |
-.- |
@JensWendt Are you sure you're still logged in as the same user (your connection hasn't timed out and you're now logged-in as e.g. public user)? Can you still access your other images? |
nevermind, I simply did not add the new imports in the live |
Hi @JensWendt But the conversion of the time into seconds in this PR wasn't working for me. (are you sure it's working for you?)
|
Hi, I just double checked, and yes, it does work on my machine :) But your solutions seems a lot nicer and more intuitive, if I would have known it works like this I would have done it that way. |
Ah, OK I realise what's going on. You can't convert from a 'SECOND' to a 'SECOND'! So if your timeIncrement is already in SECONDS then it fails. This works OK...
Bun this fails (which is the error I was seeing).
So I guess your timeIncrement was not in SECONDS? I agree that this is confusing and docs are lacking, so I think you actually did pretty well! |
Yes, I tried with minutes and hours, because that was what initially didnt work after my first iteration. |
did a commit with your solution. |
This is working fine for me now - tested on merge-ci server. |
Changed
get_timestamps()
to revert back to thetimeIncrement
attribute ofPixels
of anImage
, if noPlaneInfo
is found for it, or if thePlaneInfo
did not containDeltaT
information.If no
timeIncrement
attribute is found, it will just return 0 for all timepoints.This does not account for any time offset that might have occured, i.e. the first image always is at 0s.