Hello Kushaj,
thank you for your reply! I took another look and could actually solve my problem by following piojanu’s workaround 2. When I open the HFD5 file within getitem , and not from the init as I did before, everything works as expected. I had not realized, that my problem could be caused by that.