Skip to content

Commit 08ac586

Browse files
authored
Update lazyloading.py
1 parent 6c313a3 commit 08ac586

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

stemflow/utils/lazyloading.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ class LazyLoadingEnsembleDict(MutableMapping):
77
def __init__(self, directory='./tmp_models'):
88
"""
99
Initialize the LazyLoadingEnsembleDict with a directory to save and load models.
10-
:param directory: The directory to save and load model files.
10+
11+
Args:
12+
directory:
13+
The directory to save and load model files.
1114
"""
1215
self.directory = directory
1316
self.ensemble_models = {}
@@ -197,4 +200,4 @@ def delete_ensemble(self, ensemble_id):
197200
if os.path.exists(ensemble_path):
198201
os.remove(ensemble_path)
199202
else:
200-
raise ValueError(f'Ensemble {ensemble_id} not found on disk.')
203+
raise ValueError(f'Ensemble {ensemble_id} not found on disk.')

0 commit comments

Comments
 (0)