From 6281c265ac46436129fe4c5cd17e824819310921 Mon Sep 17 00:00:00 2001 From: fangyuedong Date: Mon, 2 Dec 2024 16:35:16 +0800 Subject: [PATCH] add free_mem to C10_Catalog.py --- catalog/C10_Catalog.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/catalog/C10_Catalog.py b/catalog/C10_Catalog.py index 8bbebcb..029add6 100644 --- a/catalog/C10_Catalog.py +++ b/catalog/C10_Catalog.py @@ -499,6 +499,10 @@ class Catalog(CatalogBase): else: print("number of objects in catalog: ", len(self.objs)) + def free_mem(self, **kward): + self.starDDL.freeGlobeData() + del self.starDLL + def load_sed(self, obj, **kwargs): if obj.type == 'star': # _, wave, flux = tag_sed( -- GitLab