-
Notifications
You must be signed in to change notification settings - Fork 67
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
Problem with cine.py #401
Comments
Same problem here. The same message showed up. I am using anaconda, Python 3.11.5 with win 10. I attached a file that failed to work with the code. |
Thanks for the bug reports! After corresponding with @schen44 we're pretty sure that pims can't properly interpret the timestamp(s) in these Cine files, which fails silently on Mac (and results in nonsense timestamps), but raises an error on Windows. It's more likely that your cine files are too new — I'm pretty sure timestamps were working correctly several years ago. We're now trying to track down an updated version of the file format documentation — any leads would be helpful. |
I can confirm that the two cine files included with pims, in the The issue seems to be that the "bad" files' trigger time is interpreted as being around 1970. So a possible crude workaround (besides editing the code) is to manually change the raw value to be something less surprising, for example: cinefile = pims.open('filename.cine')
cinefile.header_dict['trigger_time'] = int(6e18) I'll be interested to know if this works! |
Yes, this works! Thank you so much. cinefile = pims.open(name) |
Hi, I just wanted to point out that, after updating Pims I started to have problems while using the .get_frame() function in cine.py
I managed to track down the error to the call to function get_time_to_trigger:
I get the error:
I managed to bypass this issue by just deleting the 'time_to_trigger' attribute of the metadata (deleting line 531) but that is just a hotfix. Maybe you guys can figure out which is the problem. Maybe my cine files are old and don't work with new versions of Pims.
Thanks
The text was updated successfully, but these errors were encountered: