visualdynamics.gui.main_window¶
main_window
¶
Main application window: project tree, 3D/plot/table views, unit selector.
Classes:
| Name | Description |
|---|---|
MainWindow |
The app: a project tree, and panes that read whatever is picked. |
Classes¶
MainWindow
¶
Bases: QMainWindow
The app: a project tree, and panes that read whatever is picked.
The window holds a Project and nothing else — the same object a
script builds, with the same verbs on it — so a project built by
clicking and one built by calling are the same project and open in
each other. Every button here is one of those verbs plus a sentence
in the status bar; nothing is computed in this file that a script
cannot compute without it.
What it adds is the reading: which pane suits what is selected, which of several ways to read it is wanted, and the editing of the things that are edited rather than computed — units, channel tables, geometry, the report.
offscreen_3d replaces the embedded VTK view with an off-screen plotter — VTK's Qt widget cannot run under Qt's offscreen platform, so headless tests use this to exercise the full render path.
Methods:
| Name | Description |
|---|---|
set_playing |
Start or stop the animation. |
apply_theme |
Adopt a light/dark theme (default: whatever the OS is set to). |
closeEvent |
Shut every VTK view down before Qt destroys the widgets. |
add_object |
Add an object, keeping names unique. |
show_object |
Give an object already in the project its row in the tree. |
current_reference |
(kind, object, index-or-component) for the selected tree item. |
current_object |
The object owning the selection (a child resolves to its parent). |
selected_references |
[(kind, name, object, detail)] for every selected tree item. |
object_item |
The object-level item for a selection (walks up to the test). |
delete_selected |
Remove what is selected: entities while editing or when entity |
acts_for |
[(verb, label, icon, handler, tooltip)] the selection can |
refresh_selected |
Recompute the selected stale object — the bar's Recompute, |
generate_report_act |
The bar's Generate Report: the typed report at once, or the |
refresh_object |
Recompute a stale object in place — the badge's click. |
linked_group |
The linked member names beside |
link_role |
The role of |
set_link_role |
Declare a link group the Basis of comparisons — explicit, |
linked_geometry |
(geometry name, geometry) linked with |
unlink_selected |
Take the selected objects out of their groups; a group left |
set_project_type |
Declare what kind of test this project is — the tree then |
delete_entity_rows |
Delete the rows selected in the edit table. |
define_units |
Declare units for what is selected. |
set_active_geometry |
Choose the geometry every other object is checked against. |
refresh_compatibility |
Re-check the test and repaint the tree. |
show_units_panel |
Open the units pane on one data object, leaving the plot up. |
rename_selected |
Start inline editing of the selected name. |
rename_object |
Rename an object from code, numbering a taken name the way |
edit_entities |
Edit a geometry's nodes, coordinate systems, tracelines, |
set_add_mode |
Toggle creating things by clicking in the 3D view. |
set_rotate_mode |
Show the rings, and take over the mouse while one is dragged. |
reset_rotation |
Put the frame back to no rotation, keeping where it sits. |
hover_at |
Light up whatever is under this pixel; returns the entity. |
select_entity |
Select the table row for an entity picked in the 3D view. |
about |
The version and what it is: an alpha, to be checked, with |
check_for_updates |
File → Check for Updates: ask visualdynamics.org for the |
dragEnterEvent |
Anywhere on the window will do. |
event |
Keyboard focus is parked while the window is inactive. |
import_paths |
Import several files, reporting any failures once at the end. |
save_test |
Save the whole project — every object, under its name — one file. |
copy_selected |
Cmd/Ctrl+C in the tree: the selected objects onto the |
paste_objects |
Cmd/Ctrl+V in the tree: whatever the clipboard holds that |
save_selected |
Write the selected object, in whichever form is asked for. |
render_current |
Render everything selected: geometries overlay, curves share axes. |
add_matches |
Commit the selected MAC squares to the matched modes for |
compute_spectra |
Averaged spectra from the selected time history, one record |
project_onto_basis |
The other set sampled at the Basis set's DOFs, added as a |
transform_selection |
The selected record through the selected shape set — modal |
generate_typed_report |
Generate the report the project's declared type calls for. |
extract_sine_levels |
Each specification tone's level, read out of the recording |
compute_psds |
Averaged auto-power spectral densities from the selected |
compute_octave |
A spectrum on proportional bands, added beside it — the |
compute_frfs |
FRFs from the selected time history, added beside it. |
compute_multiple_coherence |
Multiple coherence from the selected time history. |
compute_srs |
Shock response spectra from the selected time history — one |
filter_data |
The selected time history through its filter, every |
truncate_data |
The selected time history cut to its span, every channel, |
generate_rigid_body_modes |
The six rigid-body mode shapes of the selected geometry, |
integrate_history |
One integration of the selected time history — acceleration |
differentiate_history |
One differentiation of the selected time history — |
compute_cpsds |
The full cross-spectral matrix from the selected time |
generate_report |
A new Report object from a starter template, opened to edit. |
export_report_template |
Write the selected report on its own, as a template another |
export_report |
Write the selected report as one self-contained HTML file. |
merge_selected |
Replace the selected objects with their combination. |
start_modal_fit |
Fit real normal modes to the selected FRFs, one mode at a time. |
refine_all_modes |
Re-fit every confirmed mode's residues together, poles held — |
find_next_mode |
Put the cursor on the next mode worth fitting. |
fit_pending_mode |
Fit at the cursor without confirming, and restate everything. |
Attributes:
| Name | Type | Description |
|---|---|---|
objects |
Project
|
The project's objects: a mapping of name to object. |
speed |
float
|
How fast the animation runs, as a multiple of the normal rate. |
element_type |
tuple[int, int]
|
(type code, node count) for the element type now selected. |
Source code in src/visualdynamics/gui/main_window.py
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 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 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 1354 1355 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 | |
Attributes¶
element_type
property
¶
(type code, node count) for the element type now selected.
Methods:¶
set_playing
¶
Start or stop the animation.
Source code in src/visualdynamics/gui/main_window.py
apply_theme
¶
Adopt a light/dark theme (default: whatever the OS is set to).
Source code in src/visualdynamics/gui/main_window.py
closeEvent
¶
Shut every VTK view down before Qt destroys the widgets.
Without this, closing the window after a 3D view has rendered segfaults: the render window is torn down with its GL context still live. All three of them, not just the scene — the stage and the MAC bars have the same interactor, the same GL context and the same timers, and the scene-only version left them to take their chances (Brandon's crash report, 2026-08-30).
Source code in src/visualdynamics/gui/main_window.py
add_object
¶
add_object(
name: str,
obj: Any,
alternate: str | None = None,
source: str | None = None,
key: Any = None,
) -> str
Add an object, keeping names unique.
alternate is tried first on a clash. source is the file it was
read from and key what that file's reader called it; both go on the
tooltip, because the name carries neither.
Source code in src/visualdynamics/gui/main_window.py
show_object
¶
Give an object already in the project its row in the tree.
The store and the showing are separate: a project verb — a computation, a fit, a projection — puts the result in the project, and this is how the window catches up with it.
Source code in src/visualdynamics/gui/main_window.py
current_reference
¶
(kind, object, index-or-component) for the selected tree item.
Source code in src/visualdynamics/gui/main_window.py
current_object
¶
selected_references
¶
[(kind, name, object, detail)] for every selected tree item.
Source code in src/visualdynamics/gui/main_window.py
object_item
¶
The object-level item for a selection (walks up to the test).
Source code in src/visualdynamics/gui/main_window.py
delete_selected
¶
Remove what is selected: entities while editing or when entity rows are picked in the tree, whole objects otherwise.
Source code in src/visualdynamics/gui/main_window.py
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 | |
acts_for
¶
[(verb, label, icon, handler, tooltip)] the selection can take, in the bar's order.
names is the selection; left out, it is read from the tree,
a record pick counting as its object. The project row selected
offers the one act the project itself has, its report; a stale
object offers Recompute first, ahead of anything else it can do.
Source code in src/visualdynamics/gui/main_window.py
refresh_selected
¶
Recompute the selected stale object — the bar's Recompute, the same act as the badge's click.
generate_report_act
¶
The bar's Generate Report: the typed report at once, or the choice of templates for an untyped project — and the templates the user has saved, beside the built-in ones, whenever there are any (2026-09-08).
Source code in src/visualdynamics/gui/main_window.py
refresh_object
¶
Recompute a stale object in place — the badge's click.
Source code in src/visualdynamics/gui/main_window.py
linked_group
¶
The linked member names beside name, or None.
link_role
¶
The role of name's link group — 'Basis', or None for an
unroled or unlinked object. The Basis group defines the DOF
space comparisons happen in: other sets project onto its DOFs,
its modes are the MAC rows and the frequency-error baseline.
Source code in src/visualdynamics/gui/main_window.py
set_link_role
¶
Declare a link group the Basis of comparisons — explicit, so nothing downstream has to guess which group is which.
Source code in src/visualdynamics/gui/main_window.py
linked_geometry
¶
linked_geometry(name: str) -> tuple[str, Geometry] | None
(geometry name, geometry) linked with name, or None —
explicit knowledge, never a guess.
Source code in src/visualdynamics/gui/main_window.py
unlink_selected
¶
Take the selected objects out of their groups; a group left with one member dissolves.
Source code in src/visualdynamics/gui/main_window.py
set_project_type
¶
Declare what kind of test this project is — the tree then shows a grey slot for everything that kind of report expects.
The type never pre-selects a reading: a time history opens plain whatever the project is (Brandon, 2026-08-30).
Source code in src/visualdynamics/gui/main_window.py
delete_entity_rows
¶
Delete the rows selected in the edit table.
Source code in src/visualdynamics/gui/main_window.py
define_units
¶
Declare units for what is selected.
With individual records selected, only those get units; selecting an object (or its category) covers all of its records.
Source code in src/visualdynamics/gui/main_window.py
set_active_geometry
¶
Choose the geometry every other object is checked against.
Source code in src/visualdynamics/gui/main_window.py
refresh_compatibility
¶
Re-check the test and repaint the tree.
Runs when the project changes — import, delete, rename, or a new active geometry — not on selection or render.
Source code in src/visualdynamics/gui/main_window.py
show_units_panel
¶
Open the units pane on one data object, leaving the plot up.
An FRF gets two tables — its response channels and its reference channels — because a matrix of N×M records has only N+M channel units to name. Everything else fills the first table alone.
Source code in src/visualdynamics/gui/main_window.py
rename_selected
¶
Start inline editing of the selected name.
The project's own row included. top_level_item walks up to
the project and answers None when it is already there — which is
right for finding an object's row and wrong here, and left
Rename silently doing nothing on the one row that carries the
project's name.
Source code in src/visualdynamics/gui/main_window.py
rename_object
¶
Rename an object from code, numbering a taken name the way
Project.add does; returns the name used.
Source code in src/visualdynamics/gui/main_window.py
edit_entities
¶
Edit a geometry's nodes, coordinate systems, tracelines, elements or blocks in a table beside the model.
Source code in src/visualdynamics/gui/main_window.py
set_add_mode
¶
Toggle creating things by clicking in the 3D view.
Source code in src/visualdynamics/gui/main_window.py
set_rotate_mode
¶
Show the rings, and take over the mouse while one is dragged.
Source code in src/visualdynamics/gui/main_window.py
reset_rotation
¶
Put the frame back to no rotation, keeping where it sits.
Source code in src/visualdynamics/gui/main_window.py
hover_at
¶
Light up whatever is under this pixel; returns the entity.
Source code in src/visualdynamics/gui/main_window.py
select_entity
¶
Select the table row for an entity picked in the 3D view.
The same rule for every kind of entity: a plain click selects only what was clicked, the modifier adds to the selection, and clicking something already selected takes it back out.
Source code in src/visualdynamics/gui/main_window.py
about
¶
The version and what it is: an alpha, to be checked, with the contact address. The one place a user can read the version without the network or a relaunch.
Source code in src/visualdynamics/gui/main_window.py
check_for_updates
¶
File → Check for Updates: ask visualdynamics.org for the latest version and say what it found.
A check, never an update — update.py explains the line: an
updater that runs what it fetched without verifying a
signature is remote code execution with a friendly name, and
there is no signing identity yet. So a newer version is
offered as a page to open, in the browser, where the release
is (and where a private release wants the user's own login).
The fetch runs off the main thread: the check is the least
important thing the application does and must never be why it
is slow.
Source code in src/visualdynamics/gui/main_window.py
dragEnterEvent
¶
Anywhere on the window will do.
Dropping on the tree alone made a target of whatever the tree happened to be that moment — and on a fresh window it is sized to no content at all, a strip about 90 px wide. Missing it does nothing at all, which reads as the drop being ignored, so the file gets dragged over again. The window is the thing being aimed at; let it take the file.
Source code in src/visualdynamics/gui/main_window.py
event
¶
Keyboard focus is parked while the window is inactive.
macOS 26 with Qt 6.11 discards a Finder drop released over the rect of the widget that held focus when the app deactivated: draggingEntered and draggingUpdated are answered Copy, and the release still arrives as draggingExited — no drop, no error, nothing. The tree is the first focusable widget, so on a fresh window it held focus and the one dead spot in the window was the very widget whose status line says "drag files onto the tree". Proven by swizzling the NSView's dragging methods and toggling nothing but focus; the full hunt is in the log for commit that introduced this.
Three shapes of this fix failed first, each for a reason worth keeping:
- Parking when the drag enters is too late. The drag's source deactivated the app before the first enter, and the platform state that kills the drop is set by then.
clearFocus()at deactivation is in time but does nothing: focus-to-nobody leaves the platform's input state armed. Only a genuine handoff to another widget runs the full teardown.- Disabling input methods on the tree changes nothing — the poison is the focus itself, not the input context.
So focus is handed to a zero-size widget whose rect nothing can hit, and handed back on activation. An inactive window has no keyboard, so nothing is lost in between.
Source code in src/visualdynamics/gui/main_window.py
import_paths
¶
Import several files, reporting any failures once at the end.
Dropped images are not their own objects: they land together in the project's Photos object, created on first use.
Source code in src/visualdynamics/gui/main_window.py
save_test
¶
Save the whole project — every object, under its name — one file.
Source code in src/visualdynamics/gui/main_window.py
copy_selected
¶
Cmd/Ctrl+C in the tree: the selected objects onto the clipboard, as objects and as files.
Source code in src/visualdynamics/gui/main_window.py
paste_objects
¶
Cmd/Ctrl+V in the tree: whatever the clipboard holds that this tree can take.
save_selected
¶
Write the selected object, in whichever form is asked for.
One verb, because Save As and Export were the same act with two names — pick an object, pick a file, write it — and a user who wanted a UNV had to know that the second menu entry existed and that the first would not offer it.
The format is the dialog's file-type list, which is where a save
dialog has always asked. .vdyn is first because it is the only
form that comes back whole; the rest are what this particular
object can be written as, so a mode shape is never offered a
format that cannot hold one — said in the list rather than in an
error afterwards.
Source code in src/visualdynamics/gui/main_window.py
render_current
¶
Render everything selected: geometries overlay, curves share axes.
Source code in src/visualdynamics/gui/main_window.py
6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 | |
add_matches
¶
Commit the selected MAC squares to the matched modes for this pair of sets — the project creates or extends the object, links it to the Basis group, and keeps the MAC values that were displayed (a name-matched recompute would not reproduce a projected comparison).
Source code in src/visualdynamics/gui/main_window.py
compute_spectra
¶
Averaged spectra from the selected time history, one record per channel, added to the project beside it.
Source code in src/visualdynamics/gui/main_window.py
project_onto_basis
¶
The other set sampled at the Basis set's DOFs, added as a new object — the project does the projection and the linking.
Source code in src/visualdynamics/gui/main_window.py
transform_selection
¶
The selected record through the selected shape set — modal
responses from physical, or physical from modal — added to the
project by the verb a script calls. No pane and no preview: a
transform has no settings (Brandon, 2026-09-04), so it is an
act like Integrate, and the account it leaves is on the status
line and on the object's transform_report.
Source code in src/visualdynamics/gui/main_window.py
generate_typed_report
¶
extract_sine_levels
¶
Each specification tone's level, read out of the recording and added beside it — the project verb, with the tree kept in step and the result selected so the comparison is one click.
Source code in src/visualdynamics/gui/main_window.py
compute_psds
¶
Averaged auto-power spectral densities from the selected time history, one record per channel, added beside it.
Source code in src/visualdynamics/gui/main_window.py
compute_octave
¶
A spectrum on proportional bands, added beside it — the Octave Bands panel's own act, making exactly the steps its preview draws with the spacing set beside them.
Source code in src/visualdynamics/gui/main_window.py
compute_frfs
¶
FRFs from the selected time history, added beside it.
Asks which estimator first. The three differ in where they assume the noise is — on the response, on the reference, or on both — and that is not something the data can say; it is a statement about the instrumentation, which the person who ran the test is the one holding.
The drives are the history's own excitation channels and the frames are the ones a PSD would use, so the FRFs, the PSDs and the multiple coherence beside them all describe one measurement.
Source code in src/visualdynamics/gui/main_window.py
compute_multiple_coherence
¶
Multiple coherence from the selected time history.
Over the same frames a PSD would be averaged from, so the two describe one measurement — the averaging view sets both.
With no averaging set at all, Project.compute_multiple_coherence
works one out and stores it on the history, the way the shock
calculator stores the events it detects. Storing it is the
point: a coherence that quietly averaged differently from the
PSD beside it would describe a different measurement, and the
whole reason it follows the averaging is so that it does not.
This says which of the two happened.
Source code in src/visualdynamics/gui/main_window.py
compute_srs
¶
Shock response spectra from the selected time history — one curve per channel per shock, added beside it.
The shocks come from the history itself, the way averaging does:
whatever the shock view has on it at the time. With none,
Project.compute_srs runs the detector first, so the calculator
answers rather than asking the user to go and find the events by
hand.
Source code in src/visualdynamics/gui/main_window.py
filter_data
¶
The selected time history through its filter, every
channel, added beside it. The settings are the history's own;
with none set, the suggestion is adopted — same contract as
Project.filter_data.
Source code in src/visualdynamics/gui/main_window.py
truncate_data
¶
The selected time history cut to its span, every channel, added beside it. The span is the history's own; with none set, this refuses and says where to set one — keeping the whole record is not an act, so there is no suggestion to adopt the way Filter Data adopts one.
Source code in src/visualdynamics/gui/main_window.py
generate_rigid_body_modes
¶
The six rigid-body mode shapes of the selected geometry, about the point the rigid-body pane shows, added to its group — the same verb a script calls, so provenance and the badge follow.
Source code in src/visualdynamics/gui/main_window.py
integrate_history
¶
One integration of the selected time history — acceleration to velocity, velocity to displacement — added beside it.
Source code in src/visualdynamics/gui/main_window.py
differentiate_history
¶
One differentiation of the selected time history — displacement to velocity, velocity to acceleration — added beside it.
Source code in src/visualdynamics/gui/main_window.py
compute_cpsds
¶
The full cross-spectral matrix from the selected time history — every channel against every channel — added beside it.
Source code in src/visualdynamics/gui/main_window.py
generate_report
¶
A new Report object from a starter template, opened to edit.
Templates bind symbolically — '@basis:Frf' and friends, resolved against the link groups at render time — so the report depends on the project's structure, never on what anyone named their objects.
Source code in src/visualdynamics/gui/main_window.py
export_report_template
¶
Write the selected report on its own, as a template another project can load — into the templates folder by default, which is where Generate Report looks.
Source code in src/visualdynamics/gui/main_window.py
export_report
¶
Write the selected report as one self-contained HTML file.
Source code in src/visualdynamics/gui/main_window.py
merge_selected
¶
Replace the selected objects with their combination.
Source code in src/visualdynamics/gui/main_window.py
start_modal_fit
¶
Fit real normal modes to the selected FRFs, one mode at a time.
The measured CMIF stays solid while the fit's synthesis climbs onto it dashed. A cursor sits on the largest residual peak, and the frequencies on screen are what narrow the search — zoom to say where to look, and the cursor rides the zoom rather than being left off-screen; the table beside the plot lists the fitted modes plus the pending one; Find Mode previews a fit at the cursor, Confirm Mode adopts it and moves to the next residual peak — the natural next mode, since a confirmed peak collapses. A co-selected shape set seeds the session and receives every change in place.
Source code in src/visualdynamics/gui/main_window.py
10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 | |
refine_all_modes
¶
Re-fit every confirmed mode's residues together, poles held — see ModalFitSession.refine_residues for what this repairs.
Source code in src/visualdynamics/gui/main_window.py
find_next_mode
¶
Put the cursor on the next mode worth fitting.
The largest CMIF peak left in the residual, inside what the plot is showing — which is what Confirm already moves to once a mode is taken. This is that on its own, for hunting before committing to anything.
Source code in src/visualdynamics/gui/main_window.py
fit_pending_mode
¶
Fit at the cursor without confirming, and restate everything.
There is no button for this any more. Dragging fits as it goes and the MAC follows a moment after the cursor stops, so by the time anyone reached for Fit Mode the work was already done — the button was asking for something it had.
It stays as a method because it is the whole view restated at once, which a caller that changed something out of band still wants: a damping typed into the table, or a script driving the fit with no cursor to drag.