Skip to content

Commit

Permalink
fix(precheck): fix yaml parsing for analog pins
Browse files Browse the repository at this point in the history
  • Loading branch information
htfab committed Apr 30, 2024
1 parent 0ffb58b commit 0adf1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion precheck/precheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def main():
yaml_data = yaml.safe_load(open(yaml_file))
logging.info("yaml data:" + str(yaml_data))
tiles = yaml_data.get("project", {}).get("tiles", "1x1")
is_analog = yaml_data.get("pinout", {}).get("analog_pins", 0) > 0
is_analog = yaml_data.get("project", {}).get("analog_pins", 0) > 0
if is_analog:
template_def = f"../def/analog/tt_block_{tiles}_pg_ana.def"
else:
Expand Down

0 comments on commit 0adf1ad

Please sign in to comment.