visualdynamics.core.report¶
report
¶
Reports: an ordered story told from a project's objects.
A Report is a list of blocks — text the user wrote, plots, animated
geometry scenes, tables — each naming the object it draws from. It holds
references, never data. A reference is a literal object name, or a
symbolic selector like '@basis:Frf' resolved against the project's link
groups at render time (resolve_binding) — which is what makes one
saved report a template for the next project: nobody has to name their
objects anything in particular. An unresolvable block sits unbound in
the builder until pointed at a compatible object, and an unbound block
simply does not render.
Classes:
| Name | Description |
|---|---|
Report |
An ordered list of blocks, each a plain dict. |
Functions:
| Name | Description |
|---|---|
source_options |
Object names a block of this kind could draw from. |
binding_tokens |
{token: (class, banded)} — every symbolic token: the plain |
is_banded |
Does this object live on bands — an octave-band PSD or |
binding_types |
{token: class} — the types a symbolic binding can name. |
resolve_binding |
The object name a binding field means. |
binding_label |
A human reading of a binding: 'Basis FRF (auto)' for |
symbolic_options |
[(selector, label)] this block could bind instead of a name — |
photo_options |
The photo names a photo block's bound Photos object holds. |
base_quantity |
The quantity a record's dimension names: 'acceleration' whether |
record_dimensions |
The quantities one data array's records hold — unknowns and |
time_dimensions |
The quantities the project's time data actually holds, sorted — |
spectrum_dimensions |
The quantities the project's spectra hold — the Spectra (…) |
psd_dimensions |
The quantities the project's PSDs hold — the PSD (…) options. |
series_dof_quantities |
Every quantity the selected data measures at some DOF, sorted. |
series_quantity_dofs |
Every DOF the selected data measures as |
dof_quantities |
Every quantity the project measures anywhere — the DOFs (…) |
quantity_dofs |
Every DOF in the whole project measured as |
dofs_source_options |
Data objects a DOFs scene could read its arrows from — those |
insert_options |
[(kind, label)] for the editor's Result drop-down. The Time |
takes_shapes |
May this block name a shape set? Scenes animate them, a CMIF |
instrumentation_text |
The front matter's prose, saying only what the project holds. |
project_expectations |
[(label, class, icon key, count, optional, side)] a report of |
missing_expectations |
The expectations the project does not satisfy yet. |
expectation_satisfiers |
{link group: [object names]} — which objects satisfy each of |
quantity_order |
The quantities in reading order: excitations first — voltage, |
time_data_blocks |
The time plots for one history: one figure per quantity it |
kurtosis_block |
How Gaussian every channel of a record is, as a bar apiece. |
paired_density_blocks |
The two densities overlaid, one figure per quantity they share |
front_matter |
The blocks every report opens with, in one order (Brandon, |
modal_template |
A modal-test report from whatever the project holds. |
shock_template |
A shock report: the transients, and the SRS against its target. |
sine_template |
A sine sweep report: the tones, and the levels they reached. |
sysid_template |
A system identification report: the measured plant, and whether |
transient_template |
A transient replication report: what was asked for, and what came |
control_channels_of |
The control channels a specification names, as the comparison |
control_channel_labels |
The control channels the specification a token binds names, as |
channel_grid |
The grid the random report lays many control channels out on. |
prune_unbound |
Drop what the project cannot fill, once it holds anything |
random_template |
A random vibration report: what was asked for, what arrived, and |
Classes¶
Report
¶
Report(title: str = 'Report', blocks: Sequence[Mapping[str, Any]] | None = None, marking: str = 'UNCLASSIFIED', marking_color: str = 'ink')
An ordered list of blocks, each a plain dict.
Block shapes:
{'kind': 'text', 'text': str}
{'kind': 'plot', 'source': name, 'mode': curves|cmif|mac|map,
'select': ''|drive|dim:measured against source —
compliance.verdict)
'select' filters a curves plot to the records the GUI's own filters
would pick: 'drive' is the response==reference diagonal of an FRF,
and 'dim:
Methods:
| Name | Description |
|---|---|
move |
Move the blocks at |
unbound |
Block indices whose references the project cannot resolve — |
Source code in src/visualdynamics/core/report.py
Methods:¶
move
¶
Move the blocks at rows so the first lands at index to —
the drop half of drag-to-reorder.
Source code in src/visualdynamics/core/report.py
unbound
¶
Block indices whose references the project cannot resolve — a missing name, or a symbolic selector with nothing to pick.
Source code in src/visualdynamics/core/report.py
Functions:¶
source_options
¶
Object names a block of this kind could draw from.
Source code in src/visualdynamics/core/report.py
binding_tokens
¶
{token: (class, banded)} — every symbolic token: the plain types (banded None, meaning not banded), and the banded flavors.
Source code in src/visualdynamics/core/report.py
is_banded
¶
Does this object live on bands — an octave-band PSD or specification rather than one on lines?
binding_types
¶
{token: class} — the types a symbolic binding can name.
Source code in src/visualdynamics/core/report.py
resolve_binding
¶
resolve_binding(value: str | None, objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None = None) -> str | None
The object name a binding field means.
A literal name passes through untouched. A symbolic selector — '@basis:Frf', '@other:ShapeSet', '@any:MatchedModes' — resolves against the project at render time, so a report never depends on what anyone named their objects: 'basis' is the first object of the type in the Basis link group, 'other' the first outside it, 'any' the first anywhere. Without a Basis declared, 'basis' degrades to the first of the type and 'other' to the second, so a small unlinked project still renders. Returns the name, or None when nothing fits.
Source code in src/visualdynamics/core/report.py
binding_label
¶
A human reading of a binding: 'Basis FRF (auto)' for '@basis:Frf'; a literal name reads as itself.
Source code in src/visualdynamics/core/report.py
symbolic_options
¶
[(selector, label)] this block could bind instead of a name — how a report stays independent of what objects are called.
Source code in src/visualdynamics/core/report.py
photo_options
¶
photo_options(block: Mapping[str, Any], objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None = None) -> list[str]
The photo names a photo block's bound Photos object holds.
Source code in src/visualdynamics/core/report.py
base_quantity
¶
The quantity a record's dimension names: 'acceleration' whether the record holds accelerations or their square-per-Hz.
record_dimensions
¶
The quantities one data array's records hold — unknowns and cross terms (a CPSD's acceleration*force) dropped.
Source code in src/visualdynamics/core/report.py
time_dimensions
¶
The quantities the project's time data actually holds, sorted — what the insert menu's Time (…) options are made of.
Source code in src/visualdynamics/core/report.py
spectrum_dimensions
¶
The quantities the project's spectra hold — the Spectra (…) options, exactly as the time ones.
Source code in src/visualdynamics/core/report.py
psd_dimensions
¶
The quantities the project's PSDs hold — the PSD (…) options.
series_dof_quantities
¶
Every quantity the selected data measures at some DOF, sorted.
series is [(name, data, records)] with records None for the whole
object — the same shape the GUI's selection speaks. References
count: an FRF per unit force names its force DOFs even when no
force channel was kept.
Source code in src/visualdynamics/core/report.py
series_quantity_dofs
¶
series_quantity_dofs(series: Sequence[tuple[str, Any, Sequence[int] | None]], quantity: str) -> list[str]
Every DOF the selected data measures as quantity: response
DOFs of records holding it, and reference DOFs of records
referenced to it. Deduped and ordered by node.
Source code in src/visualdynamics/core/report.py
dof_quantities
¶
Every quantity the project measures anywhere — the DOFs (…) insert options.
quantity_dofs
¶
Every DOF in the whole project measured as quantity.
dofs_source_options
¶
Data objects a DOFs scene could read its arrows from — those that actually measure the block's quantity at some DOF.
Source code in src/visualdynamics/core/report.py
insert_options
¶
[(kind, label)] for the editor's Result drop-down. The Time entries are per quantity, and only for quantities the project's time data actually holds.
Source code in src/visualdynamics/core/report.py
takes_shapes
¶
May this block name a shape set? Scenes animate them, a CMIF overlays their synthesis, a MAC crosses against them, and a drive point plot marks their frequencies.
Source code in src/visualdynamics/core/report.py
instrumentation_text
¶
instrumentation_text(objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None = None) -> str
The front matter's prose, saying only what the project holds.
The standing text names the geometry, the DOF scenes and the channel table. A run imported without a geometry has none of the first three, and a paragraph about "the test geometry" over a channel table alone reads as a report with holes in it (Brandon, 2026-09-19). With a geometry bound the text is the standing one; without, it is the channel table's sentence, and the photographs' when there are any. An empty project keeps the standing text — there it is the template being read.
Source code in src/visualdynamics/core/report.py
project_expectations
¶
[(label, class, icon key, count, optional, side)] a report of this type draws from — the gray slots a typed project shows until filled.
The label is the type's own name and nothing more (Brandon,
2026-09-02: every slot named for the object it waits for, so a
skeleton reads the same in every project type); a type that
expects several of one class shows the same label several times,
and count says which instance satisfies which slot. The side is
'Basis', OTHER_SIDE, or None for a slot on neither side (the
report, the matched modes). A project knows its Basis and
everything else is other: the other side is a place in the
tree, not a role — its group carries no name and is never guessed
into, since a second test is as good a comparison as a model. The
FEM tag that once named that pair went 2026-09-02. optional
marks best-practice slots a report renders without.
Every type ends with the report itself. It is the one object the others exist to produce, and a project that has everything a report needs but no report is not finished — so it is a slot like the rest, gray until it is generated. It carries no link group: a report reads the whole project and belongs to no one side of it.
Source code in src/visualdynamics/core/report.py
599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 | |
missing_expectations
¶
missing_expectations(project_type: str, objects: Mapping[str, Any], placed: Mapping[str, Sequence[str]] | None = None) -> list[tuple[str, type, str, int, bool, str | None]]
The expectations the project does not satisfy yet.
placed is {side: [object names]} — which objects are in each
side's groups: Project.placed() for the Basis, and under
OTHER_SIDE every member of every other group (the window adds
that key). A slot is filled by an object on its own side, never
by one anywhere in the project: a modal test
whose only geometry is the model's still needs a measured one, and
counting globally made the Basis slots vanish the moment any
geometry at all arrived, leaving a skeleton with nothing in it and
no way to see what was wrong.
A slot with no group of its own — the report — is still answered by the whole project, since that is what a report reads. Passing nothing counts everything for everything, which is what this did before and is kept for callers that have no links to offer.
Source code in src/visualdynamics/core/report.py
expectation_satisfiers
¶
expectation_satisfiers(project_type: str, objects: Mapping[str, Any], placed: Mapping[str, Sequence[str]] | None = None) -> dict[str, list[str]]
{link group: [object names]} — which objects satisfy each of the type's named expectations, so the Basis members link together. The count-th instance of a class (in project order) satisfies a count-th expectation. Slots on the other side carry no name and are never guessed into a group: a second geometry and shape set are linked by hand, or by the file that brought them.
That ordering is a guess: the first geometry imported could belong
to either group, and nothing about the object says which. Objects
already placed are therefore taken as given and left out of the
guessing — pass placed (from Project.placed()) and each one
counts only for the group it is in.
Source code in src/visualdynamics/core/report.py
quantity_order
¶
The quantities in reading order: excitations first — voltage, then force — then the responses, alphabetical past the standing three. The same order the DOF scenes read in.
Source code in src/visualdynamics/core/report.py
time_data_blocks
¶
time_data_blocks(source: str, objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None, caption: str, per_quantity: str, mode: str = 'curves') -> list[dict[str, Any]]
The time plots for one history: one figure per quantity it
measures (Brandon, 2026-08-23 — an axis holds one quantity, so a
stream carrying drive voltages beside response accelerations must
not overlay them). per_quantity is the caption with a
{quantity} slot; a single-quantity or unbound source keeps the
plain caption, one figure, as before.
Filled by replace, never str.format (Brandon, 2026-08-25): a
caption may carry a live reference — {{Object.field}} — and
format reads the doubled braces as an escape and collapses them
to single ones, which the reference resolver then does not match.
The shock report shipped 'at {Time History.filter_corner}' under
two figures exactly that way, and only in the two-quantity case,
because the one-quantity path never calls format at all.
Flat, not the stage (Brandon, 2026-09-20). A stage figure carries
MAX_FIGURE_POINTS — two million points — and a report's time
histories are the largest thing in it by an order of magnitude:
the plate's modal report was 36 MB, 88% of it two such figures,
and a 144-channel run at 16 kHz made a 200 MB report. The flat
figure pages its channels two dozen at a time and draws each page
as an envelope on one shared time axis, which is the same picture
at every zoom the page offers. mode='stage' is still there for a
template that wants depth.
Source code in src/visualdynamics/core/report.py
kurtosis_block
¶
How Gaussian every channel of a record is, as a bar apiece.
In every report (Brandon, 2026-08-24), because it answers a question a spectrum cannot: two records with identical PSDs can be a smooth hiss and a train of rare hard peaks, and only the second fatigues an article the way the peaks suggest. One chart for all channels whatever they measure — kurtosis is dimensionless, so this is the one reading here where mixing quantities is honest.
A computed judgment of the record, so it sits with the other judgments rather than beside the traces (the standing order: geometry, table, time data, spectra, then what was computed).
Source code in src/visualdynamics/core/report.py
paired_density_blocks
¶
paired_density_blocks(loud: str, quiet: str, objects: Mapping[str, Any], caption: str, per_quantity: str) -> list[dict[str, Any]]
The two densities overlaid, one figure per quantity they share — the flat reading of the app's paired stage (Brandon, 2026-08-23). Same one-quantity-per-axis rule as the time data, and the same reading order.
Source code in src/visualdynamics/core/report.py
front_matter
¶
front_matter(objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None, dofs_source: str) -> list[dict[str, Any]]
The blocks every report opens with, in one order (Brandon, 2026-08-23): the test geometry, a DOF scene per data type — excitations before responses — the photographs, and the channel table. What was tested and where it was instrumented, before any data means anything. Every slot is symbolic and an unbound or empty one does not render, so a bare project keeps the outline without blank figures.
Source code in src/visualdynamics/core/report.py
modal_template
¶
modal_template(objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None = None) -> Report
A modal-test report from whatever the project holds.
Sources bind symbolically — '@basis:Frf' and friends, resolved against the link groups at render time — so the report never depends on what anyone named their objects. Blocks whose type the project lacks are still added, unbound, so the outline of a proper modal report is there to fill in.
Source code in src/visualdynamics/core/report.py
1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 | |
shock_template
¶
shock_template(objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None = None) -> Report
A shock report: the transients, and the SRS against its target.
The time histories lead the data and are not decoration. A shock is a single event and its whole character — how long, how many, whether the article was still ringing when the next one landed — is in the trace and nowhere in the spectrum. The SRS answers a narrower question and answers it after. Front matter first, like every report here (Brandon, 2026-08-23).
Source code in src/visualdynamics/core/report.py
1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 | |
sine_template
¶
sine_template(objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None = None) -> Report
A sine sweep report: the tones, and the levels they reached.
One comparison figure per tone, because each tone sweeps its own frequencies on its own clock — overlaying them would draw different requirements over each other. The extracted levels present in the project name the figures; a project not yet extracted gets one symbolic figure so the outline shows what is missing. The deviation bars judge every tone at every control channel in one chart, the same signed three-decibel reading the random and shock reports give.
Source code in src/visualdynamics/core/report.py
1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 | |
sysid_template
¶
sysid_template(objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None = None) -> Report
A system identification report: the measured plant, and whether to believe it.
The CMIF reads the whole FRF matrix at a glance — a package's 3 x 9 is twenty-seven curves nobody reads one by one — the coherence map says where the estimate held together, and the signal-to-noise says whether there was a measurement at all: where it approaches one, the plant is the room.
Ordered the way every report here is (Brandon, 2026-08-23): the front matter — geometry, DOF scenes, photographs, channel table — then the time data, then the spectra, then the computed judgments: coherence and signal-to-noise. The time data is the ambient (noise) stream first and the driven one after it, each drawn under its own averaging frames; a spectral package has no streams, and the block stays an unbound slot that does not render.
Source code in src/visualdynamics/core/report.py
1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 | |
transient_template
¶
transient_template(objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None = None) -> Report
A transient replication report: what was asked for, and what came back — two waveforms of the same thing.
A transient test is judged differently from a random one, and the report has to be shaped that way. There is no band to fall outside and no share of the spectrum to count: there is a target waveform, a measured one, and the difference between them. So the specification and the response go on the same axes, at one control channel at a time, and the reader compares them by eye — which is what everyone does with a shock trace anyway.
Deliberately shorter than the random report. There is no settled numerical comparison for two transients — RMS error over the event, peak error, an SRS of each — and inventing one here would be inventing a convention rather than reporting a measurement. The plots come first; the numbers can follow once they are agreed.
Source code in src/visualdynamics/core/report.py
2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 | |
control_channels_of
¶
The control channels a specification names, as the comparison figure labels them: its autospectra, in its own order. A cross term has no measured response to stand against it. Empty for anything that is not a specification.
Source code in src/visualdynamics/core/report.py
control_channel_labels
¶
control_channel_labels(objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None, token: str = '@basis:Specification') -> list[str]
The control channels the specification a token binds names, as the comparison figure labels them — each its own figure in the random report (Brandon, 2026-09-18: one figure per control channel rather than one figure with a drop-down). Empty when the token binds nothing yet, and the template writes one figure that picks.
Source code in src/visualdynamics/core/report.py
channel_grid
¶
The grid the random report lays many control channels out on.
A row per node, in the order the channels first name them; a
column per direction. With a geometry that can place a channel
(Geometry.dof_direction), the columns are the global axes —
'Global X', 'Global Y', 'Global Z' — and a channel goes under the
axis its measured direction is nearest, with how far off it sits
noted when it is not on it (Brandon, 2026-09-19). Without one, or
for a node the geometry cannot place, the columns are the DOF's
own letters; a channel with no direction at all — a node number
alone — stands in a 'Channel' column. Only the columns in use
appear, in that order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
labels
|
sequence of str
|
The control channels, as |
required |
geometry
|
Geometry
|
The geometry the channels are measured on. |
None
|
Returns:
| Type | Description |
|---|---|
dict
|
'columns', the column headings; 'rows', one dict per node with 'label' and 'cells' — a list per column of the channels in it, each {'channel': str, 'note': str}. |
Source code in src/visualdynamics/core/report.py
2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 | |
prune_unbound
¶
prune_unbound(report: Report, objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None = None) -> Report
Drop what the project cannot fill, once it holds anything (Brandon, 2026-09-19): every figure block that fails to bind, and every section whose figures all did.
A section is a text block opening with a ## heading and what
follows it up to the next; its figures are the blocks in it that
are not text. When none of them can resolve — the section's
objects are simply not in the project — the whole section goes,
heading and prose included, rather than a heading over nothing;
when some can, the ones that cannot go on their own, so the editor
shows no unbound cards for a run that has no geometry. A section
with no figures (the summary, the conclusions) is prose and stays.
An empty project keeps the whole outline: that is the template
being read, not a report being written.
Source code in src/visualdynamics/core/report.py
random_template
¶
random_template(objects: Mapping[str, Any], links: Sequence[Mapping[str, Any]] | None = None) -> Report
A random vibration report: what was asked for, what arrived, and by how much they differ.
Ordered the standing way (Brandon, 2026-08-23): the front matter — geometry, the DOF scenes excitation-first, photographs, the channel table — then the time data, then the spectra, then the computed judgments. Within the spectra the specification still leads: it is what the article was required to see, and the control PSDs against it are the whole claim. Coherence stays last among the judgments — it is how you tell a real exceedance from a bad channel, a question asked only once the comparison has raised it.
Sources bind symbolically, like the modal template's, so the report finds its objects under the names the typed project's tree suggested, and every unbound slot is invisible — a run with no geometry still renders.
Source code in src/visualdynamics/core/report.py
2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 | |