diff --git a/disk/InteractionDisk_temp.py b/disk/InteractionDisk_temp.py index 6e57a284da84f4a46e074cb580c3414c7d521bea..715fab53c7b72d3308a24a1e1b421188d01a254b 100644 --- a/disk/InteractionDisk_temp.py +++ b/disk/InteractionDisk_temp.py @@ -259,7 +259,7 @@ class Reader: """This method tests if the array which is requested by LoadMask already exists or not in the hdf file. """ - if currentT <= len(self.tlabels) - 1: + if currentT <= len(self.tlabels) - 1 and currentT >= 0: for t in file['/{}'.format(self.fovlabels[currentFOV])].keys(): # currentT is a number # self.tlabels is some string that indexes the time point? E.g., T0?