mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-19 01:14:07 -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
11 lines
328 B
Python
11 lines
328 B
Python
q = 'book/quarto/contents/vol2/fleet_orchestration/fleet_orchestration.qmd'
|
|
with open(q, 'r') as f: c = f.read()
|
|
|
|
# Replace all bandwidth.m_as with m_as
|
|
c = c.replace('.bandwidth.m_as', '.m_as')
|
|
|
|
# Then specifically add it back to ib_ndr
|
|
c = c.replace('ib_ndr.m_as', 'ib_ndr.bandwidth.m_as')
|
|
|
|
with open(q, 'w') as f: f.write(c)
|