what thing do I miss to create volume sequence from tiff

Nowhere. Size is defined by your numpy array.

It should be the same as the working example - with three float('nan') values.