From 38704589a9fe4db635a7542d80a1294952bf4401 Mon Sep 17 00:00:00 2001
From: mattminder <myfiles@Mattus-MacBook-Pro.local>
Date: Thu, 14 May 2020 13:49:32 +0200
Subject: [PATCH] Negative time handling

---
 disk/InteractionDisk_temp.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/disk/InteractionDisk_temp.py b/disk/InteractionDisk_temp.py
index 6e57a28..715fab5 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?
-- 
GitLab