Skip to content

Commit

Permalink
Merge from CTuning (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfursin authored Dec 8, 2023
2 parents 50b6ca7 + 575419b commit 6d9dfda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/script/process_dockerfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
continue
script_path = os.path.dirname(file)
f = open(file)
if f.endswith(".json"):
if file.endswith(".json"):
data = json.load(f)
elif f.endswith(".yaml"):
elif file.endswith(".yaml"):
data = yaml.safe_load(f)
uid = data['uid']

Expand Down
9 changes: 4 additions & 5 deletions tests/script/process_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@
files=sys.argv[1:]

for file in files:
filename = os.path.basename(file)
if not filename.endswith("_cm.json") and not filename.endswith("_cm.yaml"):
if not file.endswith("_cm.json") and not file.endswith("_cm.yaml"):
continue
if not str(file).startswith(os.path.join("cm-mlops", "script")):
if not file.startswith(os.path.join("cm-mlops", "script")):
continue
script_path = os.path.dirname(file)
f = open(file)
if f.endswith(".json"):
if file.endswith(".json"):
data = json.load(f)
elif f.endswith(".yaml"):
elif file.endswith(".yaml"):
data = yaml.safe_load(f)
uid = data['uid']

Expand Down

0 comments on commit 6d9dfda

Please sign in to comment.