Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed a few typos #1384

Merged
merged 2 commits into from
Feb 2, 2025
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
8 changes: 3 additions & 5 deletions cmx4mlops/cmx4mlops/repo/automation/cache/module_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,9 @@ def copy_to_remote(i):
cm_cache_path = os.path.realpath(
os.path.join(cm_repos_path, "local", "cache"))

for key, val in new_env.items():


if isinstance(val, if ) new_env[key] = val.replace(
cm_cache_path, remote_cm_cache_location)
for key,val in new_env.items():
if type(val) == str and cm_cache_path in val:
new_env[key] = val.replace(cm_cache_path, remote_cm_cache_location)

with open("tmp_remote_cached_state.json", "w") as f:
json.dump(cm_cached_state, f, indent=2)
Expand Down
4 changes: 2 additions & 2 deletions cmx4mlops/cmx4mlops/repo/automation/experiment/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ def run(self, i):

explore_keys.append(k)


if not isinstance(v, if ) v = eval(v)
if type(v)!=list:
v=eval(v)

explore_dimensions.append(v)

Expand Down
7 changes: 4 additions & 3 deletions cmx4mlops/cmx4mlops/repo/automation/utils/module_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,11 @@ def process_base(meta, full_path):
else:
base[k] = meta[k]


elif isinstance(v, elif) for vv in v:
elif type(v) == list:
for vv in v:
base[k].append(vv)
elif isinstance(v, elif ) base[k].merge(v)
elif type(v) == dict:
base[k].merge(v)

meta = base

Expand Down
Loading