From c32f5ffdeac694f7517a1240a5413bf9e7b6016d Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 23 Nov 2020 14:42:18 +0100 Subject: [PATCH] Unloading fix Now unloading a sequence does not delete the information about the sequence from the dataset - it just release the loaded data. --- python/pandaset/dataset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/pandaset/dataset.py b/python/pandaset/dataset.py index ce2a1be..99ca94a 100644 --- a/python/pandaset/dataset.py +++ b/python/pandaset/dataset.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +import os from typing import overload, List, Dict from .sequence import Sequence @@ -78,7 +79,7 @@ def unload(self, sequence: str): """ if sequence in self._sequences: - del self._sequences[sequence] + self._sequences[sequence] = Sequence(os.path.join(self._directory, sequence)) if __name__ == '__main__':