Skip to content

Commit

Permalink
[minor] card renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudw committed Sep 26, 2024
1 parent 8dd2a63 commit 751728f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metaflow/plugins/aip/aip.py
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,7 @@ def _create_metaflow_step_op(

card_decos = [deco for deco in node.decorators if deco.name == "card"]
file_outputs: Dict[str, str] = {
f"card{i}": f"/tmp/outputs/cards/card{i}.html"
f"card-{i}": f"/tmp/outputs/cards/card-{i}.html"
for i in range(len(card_decos))
}

Expand Down
2 changes: 1 addition & 1 deletion metaflow/plugins/aip/aip_metaflow_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _write_card_artifacts(

pathlib.Path("/tmp/outputs/cards/").mkdir(parents=True, exist_ok=True)
for index, card in enumerate(sorted_cards):
file_name = f"/tmp/outputs/cards/card{index}.html"
file_name = f"/tmp/outputs/cards/card-{index}.html"
try:
with open(file_name, "w") as card_file:
card_file.write(card.get())
Expand Down

0 comments on commit 751728f

Please sign in to comment.