Skip to content

Commit

Permalink
fix(precheck): fix yaml directory
Browse files Browse the repository at this point in the history
  • Loading branch information
htfab committed Apr 30, 2024
1 parent 2ec2f9e commit 5a5b6e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion precheck/precheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ def main():
if args.template_def:
template_def = args.template_def
else:
yaml_file = f"{os.path.dirname(args.gds)}/info.yaml"
yaml_dir = os.path.dirname(os.path.dirname(args.gds))
yaml_file = f"{yaml_dir}/info.yaml"
yaml_data = yaml.safe_load(open(yaml_file))
tiles = yaml_data.get("project", {}).get("tiles", "1x1")
is_analog = yaml_data.get("pinout", {}).get("analog_pins", 0) > 0
Expand Down

0 comments on commit 5a5b6e8

Please sign in to comment.