Skip to content

Commit

Permalink
Auto-assign missing harness title if reading from file
Browse files Browse the repository at this point in the history
  • Loading branch information
formatc1702 committed Oct 16, 2021
1 parent 9a03e5e commit 86c32ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wireviz/wireviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def parse(
# keep track of auto-generated designators to avoid duplicates
autogenerated_designators = {}

# if "title" not in harness.metadata:
# harness.metadata["title"] = Path(yaml_path).stem
if "title" not in harness.metadata:
harness.metadata["title"] = Path(yaml_file).stem if yaml_file else ""

# add items
# parse YAML input file ====================================================
Expand Down

0 comments on commit 86c32ce

Please sign in to comment.