Files
cs249r_book/scripts/fix_appendix_comm.py
T
Vijay Janapa Reddi fccee3c735 Refactor: complete the Great Constant Migration across mlsysim and Quarto chapters
- 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
2026-05-23 16:45:00 -04:00

11 lines
360 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.m_as', 'ib_ndr.bandwidth.m_as')
c = c.replace('ib_hdr.m_as', 'ib_hdr.bandwidth.m_as')
c = c.replace('roce.m_as', 'roce.bandwidth.m_as')
c = c.replace('tcp.m_as', 'tcp.bandwidth.m_as')
with open(q, 'w') as f: f.write(c)