fill in missing pin table rows to avoid skipping so many projects

This commit is contained in:
Matt Venn
2023-09-11 14:46:31 +02:00
parent e86cb1d15e
commit 90035c4525
+5
View File
@@ -97,6 +97,10 @@ class Docs():
else: else:
yaml_data[key] = "" yaml_data[key] = ""
# many people remove unused pins in input / output / bidirectional
for key in ['inputs', 'outputs', 'bidirectional']:
yaml_data[key].extend((8 - len(yaml_data[key])) * ['n/a'])
# now build the doc & print it # now build the doc & print it
try: try:
doc = (doc_template doc = (doc_template
@@ -107,6 +111,7 @@ class Docs():
fh.write(doc) fh.write(doc)
fh.write("\n\clearpage\n") fh.write("\n\clearpage\n")
except IndexError: except IndexError:
import ipdb; ipdb.set_trace()
logging.warning("missing pins in info.yaml, skipping") logging.warning("missing pins in info.yaml, skipping")
# ending # ending