From 998f3f8284d07abe4a33a4bfe87490b0c84377e0 Mon Sep 17 00:00:00 2001 From: Mateen Ulhaq Date: Thu, 15 Jun 2023 23:34:17 -0700 Subject: [PATCH] [fix] Allow closing read-only Run --- aim/sdk/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aim/sdk/run.py b/aim/sdk/run.py index 1e50d1d8c7..58fa452071 100644 --- a/aim/sdk/run.py +++ b/aim/sdk/run.py @@ -692,7 +692,8 @@ def close(self): if self._resources is None: return self._resources.close() - self._tracker.sequence_infos.clear() + if not self.read_only: + self._tracker.sequence_infos.clear() # de-reference trees and other resources del self._resources del self._props