Skip to content

Commit

Permalink
Update lazyloading.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyangkang authored Oct 27, 2024
1 parent 6c313a3 commit 08ac586
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stemflow/utils/lazyloading.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ class LazyLoadingEnsembleDict(MutableMapping):
def __init__(self, directory='./tmp_models'):
"""
Initialize the LazyLoadingEnsembleDict with a directory to save and load models.
:param directory: The directory to save and load model files.
Args:
directory:
The directory to save and load model files.
"""
self.directory = directory
self.ensemble_models = {}
Expand Down Expand Up @@ -197,4 +200,4 @@ def delete_ensemble(self, ensemble_id):
if os.path.exists(ensemble_path):
os.remove(ensemble_path)
else:
raise ValueError(f'Ensemble {ensemble_id} not found on disk.')
raise ValueError(f'Ensemble {ensemble_id} not found on disk.')

0 comments on commit 08ac586

Please sign in to comment.