Show h5 files as complete series on Windows#1650
Conversation
…le info to FILETYPE_SERIES_COMPLETE
|
There's a bit of an issue here in that we don't have a way of knowing a-priori if it's complete or not (we'd probably need to somehow check if another process has an open handle on it). This might be an issue on both win and nix. Easiest (if very inelegant) way of solving this might be to write a sentinel file once the spooling was complete (or chmod the file to read-only). |
|
IE this change will make it appear complete even while still spooling. |
|
An alternative option would be to check the modification data and call it complete if mod time is > 1 hr old or something (but this adds unwanted overhead). |
|
I'll check when we spool to h5, when we write the events table. Would be nice if that was consistent with PZF spooling and we can use its presence as a flag for completion. |
|
We used to write the events as we went (incrementally) - I'm not sure if I changed that with the PZF in H5 changes. Are we already opening the file to get the frame number? Obviously opening the file is going to have some performance overhead. |
|
If we are opening the file, I think the hdf spool saves an |
|
No, I see it now, |
One of the things I'm hoping to fix is running on not-PYMEAcquired data. I.e. if I converted a tif stack to h5, and want to run localization on it. It likely won't have the |
|
Fair point: I think we need some kind of flag which is cheap to check. Options I can think of:
I don't really like dropping additional files as flags, however. |
|
I think I've got an idea for a non-filedrop option: |
|
I'm a little worried that the round-trip is still going to be a bit high - directory listing is supposed to be fast - but it could work. |
|
I'm wondering if the easiest option isn't just to check the modification time. |
Addresses issue Posix systems show h5 as complete series, while Windows lists them only as series, but incomplete.
Is this a bugfix or an enhancement?
bugfix
Proposed changes:
to
I am having issues localizing an h5 file on Windows. This doesn't solve that, but seems worth fixing up.