better-cat-13994
05/31/2023, 8:58 AMzarr data transformation with Metaflow's LinearFlow.
All is going well except one key zarr function: when I try to consolidate all my metadata into a Metadata Store inside the flow, I get no error message but the metadata does not get consolidated (i.e. the Metadata Store that should be created does not get created). The zarr function being called in the LinearFlow is: zarr.convenience.consolidate_metadata()
Have you stumbled upon such issues before? thanks for your insight ! (I have also created a Stackoverflow question for it here)victorious-lawyer-58417
05/31/2023, 3:57 PMzarr but if it creates a local file on a remote system, it wouldn't be stored automatically when the task finishes and the container disappearsbetter-cat-13994
05/31/2023, 4:17 PMvictorious-lawyer-58417
05/31/2023, 4:34 PMzarrvictorious-lawyer-58417
05/31/2023, 4:37 PMconsolidate_metadata line, it writes something to the zarrdata datastore because the file size grows, so it seems to be doing something 🙂victorious-lawyer-58417
05/31/2023, 4:38 PMbetter-cat-13994
06/01/2023, 12:54 PMbetter-cat-13994
06/09/2023, 9:58 AMpython test_zarr_metaflow.py run is that the metadata does not get consolidated (there is no creation of a .zmetadata file in test_case folder.
I also had glitches where the file would appear then disappear: could there be an issue with the current of the Flow where the object gets created then deleted?
Thanks a lot !victorious-lawyer-58417
06/09/2023, 11:28 PMbetter-cat-13994
06/16/2023, 12:53 PMvictorious-lawyer-58417
06/16/2023, 10:38 PMtest_zarr_metaflow.py :
1. The block of code below if __name__ == '__main__': gets executed for every step
2. zarr.convenience.consolidate_metadata('test_case/test_metaflow') actually creates .zmetadata in the start step correctly
3. but when the end step executes, it re-initializes the directory, removing .zmetadata
If you move the code from the if block to the start step, it works correctly.victorious-lawyer-58417
06/16/2023, 10:39 PMbetter-cat-13994
07/27/2023, 3:11 PMvictorious-lawyer-58417
07/27/2023, 3:31 PMbetter-cat-13994
10/31/2023, 9:12 AMvictorious-lawyer-58417
10/31/2023, 4:21 PM