def get_time(self, idx):
<EOL>qpi = self.get_qpimage_raw(idx)<EOL>if "<STR_LIT:time>" in qpi.meta:<EOL><INDENT>thetime = qpi.meta["<STR_LIT:time>"]<EOL><DEDENT>else:<EOL><INDENT>thetime = np.nan<EOL><DEDENT>return thetime<EOL>
Return time of data at index `idx`

        Returns nan if the time is not defined