Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mlc/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def add(self, meta, folder_type, path, repo):
"path": path,
"repo": repo
})
self._save_indices()

def get_index(self, folder_type, uid):
for index in range(len(self.indices[folder_type])):
Expand All @@ -71,6 +72,7 @@ def update(self, meta, folder_type, path, repo):
"path": path,
"repo": repo
}
self._save_indices()

def rm(self, meta, folder_type, path):
uid = meta['uid']
Expand All @@ -79,6 +81,7 @@ def rm(self, meta, folder_type, path):
logger.warning(f"Index is not having the {folder_type} item {path}")
else:
del(self.indices[folder_type][index])
self._save_indices()

def build_index(self):
"""
Expand Down
4 changes: 2 additions & 2 deletions mlc/repo_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ def pull(self, run_args):
repo_url = run_args.get('repo', run_args.get('url', 'repo'))
if not repo_url or repo_url == "repo":
for repo_object in self.repos:
repo_folder_name = os.path.basename(repo_object.path)
if "@" in repo_folder_name:
if os.path.exists(os.path.join(repo_object.path, ".git")):
repo_folder_name = os.path.basename(repo_object.path)
res = self.pull_repo(repo_folder_name)
if res['return'] > 0:
return res
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ build-backend = "setuptools.build_meta"

[project]
name = "mlcflow"
version = "1.0.6"
version = "1.0.7"

description = "An automation interface for ML applications"
authors = [
{ name = "MLCommons", email = "[email protected]" }
Expand Down
Loading