TensorBase Subclass - Strange behaviour

Hi all,

I’m trying to implement a subclass of TensorBase (to preserve some metadata up to the showbatch commands) but I see a strange phenomenon:

  • Different instances are of my class are created by the DataBlocks
  • When i call show on the batched instances - the are all the same…

Notebook is here:

This is my class and the datablock

But when i load the data into a batch, we see that it creates the different instances (in blue), but the show() methods all show the same object in the batch (in red)

What am I doing wrong?