mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-19 09:24:14 -05:00
- Migrated all legacy constants from constants.py to hardware and model registries - Updated dozens of LEGO blocks in Volume 1 and Volume 2 to use Engine.solve and formulas - Resolved all resulting NameError, TypeError, and AttributeError exceptions in the inline Python blocks - Master Quarto HTML build now passes with zero execution failures
9 lines
310 B
Python
9 lines
310 B
Python
import re
|
|
q = 'book/quarto/contents/vol2/backmatter/appendix_communication.qmd'
|
|
with open(q, 'r') as f: c = f.read()
|
|
|
|
c = c.replace('ib_ndr, ib_ndr_alpha_us', 'ib_ndr.bandwidth, ib_ndr_alpha_us')
|
|
c = c.replace('ib_hdr, ib_hdr_alpha_us', 'ib_hdr.bandwidth, ib_hdr_alpha_us')
|
|
|
|
with open(q, 'w') as f: f.write(c)
|