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

TimeStamps #549

Open
ant-trullo opened this issue Dec 21, 2023 · 0 comments
Open

TimeStamps #549

ant-trullo opened this issue Dec 21, 2023 · 0 comments

Comments

@ant-trullo
Copy link

Use Case

Please provide a use case to help us understand your request in context
Hi all, aicsimageio is a very powerful tool, but when I load .czi time series I cannot read the time interval between 2 consecutive time frames. With the package czifile (by Christoph Gohlke) I can calculate the difference between two consecutive time stamps.
I tried to read metadata, but did not work. I really woul like to be able to read this info using aicsimageio. In attach a file

Solution

Please describe your ideal solution
Whatever works is fine to me, maybe a new attribute with the value I am searching for, like you do for pixel size.

Alternatives

Please describe any alternatives you've considered, even if you've dismissed them
What I have been using up to now is a piece of code that uses the czifile package:
with czifile.CziFile(str(fnames[0])) as czi: # read the time step
for attachment in czi.attachments():
if attachment.attachment_entry.name == 'TimeStamps':
timestamps = attachment.data()
break
else:
raise ValueError('TimeStamps not found')
time_step_value = np.round(timestamps[1] - timestamps[0], 2) # time step value

Thanks a lot

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

No branches or pull requests

1 participant