Skip to content

Commit

Permalink
ensuring gc is happening
Browse files Browse the repository at this point in the history
  • Loading branch information
psychogenic committed Nov 22, 2024
1 parent 577de7d commit d9102ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ttboard/project_mux.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def load_available(self, src_JSON_file:str=None):
self._available_projects[attrib_name] = int(project_address)
# setattr(self, attrib_name, DesignStub(self, attrib_name))
self._project_count += 1

index = None
except OSError:
log.error(f'Could not open shuttle index {src_JSON_file}')

Expand Down Expand Up @@ -195,6 +195,7 @@ def load_project(self, project_name:str) -> Design:
# this is our guy
des = Design(self._project_mux, project_name, project["address"], project)
self._shuttle_index[des.name] = des
index = None
gc.collect()
return des

Expand Down

0 comments on commit d9102ce

Please sign in to comment.