mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
Tools: shorten column names in global size summary table
Use Periph, tracker and iofw in the header to keep the table narrow.
This commit is contained in:
committed by
Peter Barker
parent
c5d75e9e77
commit
251092473a
@@ -41,6 +41,13 @@ COLUMNS = [
|
||||
"sub",
|
||||
]
|
||||
|
||||
# shorter names used in the table header to keep the table narrow
|
||||
COLUMN_TITLES = {
|
||||
"AP_Periph": "Periph",
|
||||
"antennatracker": "tracker",
|
||||
"iofirmware": "iofw",
|
||||
}
|
||||
|
||||
parser = ArgumentParser(description="Generate global size summary table.")
|
||||
parser.add_argument("--input-dir", required=True, help="Directory with per-board JSON files")
|
||||
parser.add_argument("--commit", default="", help="Commit hash the table was built from")
|
||||
@@ -108,7 +115,7 @@ if not rows:
|
||||
"rows": []}, f, indent=2)
|
||||
sys.exit(0)
|
||||
|
||||
header = ["Board"] + COLUMNS
|
||||
header = ["Board"] + [COLUMN_TITLES.get(col, col) for col in COLUMNS]
|
||||
# Column alignment: left for Board, centre for each binary
|
||||
sep = [":---"] + [":---:" for _ in COLUMNS]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user