aimbat._tui
AIMBAT Terminal User Interface.
Modules:
| Name | Description |
|---|---|
app |
AIMBAT Terminal User Interface application. |
modals |
Modal screens for the AIMBAT TUI. |
app
AIMBAT Terminal User Interface application.
Classes:
| Name | Description |
|---|---|
AimbatTUI |
Root screen of the AIMBAT Terminal User Interface. |
Functions:
| Name | Description |
|---|---|
main |
Run the AIMBAT TUI until it exits. |
AimbatTUI
Bases: _IccsLifecycleMixin, App[None]
Root screen of the AIMBAT Terminal User Interface.
Composes a header, an event status bar, a tabbed content area (Project,
Live data, Snapshots) and a footer. Owns the current active event, the
long-lived BoundICCS instance used by the Live data tab and the
interactive tools (lifecycle managed by _IccsLifecycleMixin), and
dispatches row actions and key bindings to the corresponding core
functions.
Methods:
| Name | Description |
|---|---|
action_add_data |
Prompt for a data type, then a data source, and add it to the project. |
action_new_snapshot |
Prompt for an optional comment and create a snapshot of the current event's parameters. |
action_open_align |
Open the alignment menu and run the chosen algorithm (ICCS or MCCC). |
action_open_interactive_tools |
Open the interactive tools menu and run the chosen tool. |
action_open_parameters |
Open the parameters modal for the current event, recreating ICCS if changed. |
action_refresh |
Refresh all panels on demand. |
action_show_help |
Open the help modal for the active tab. |
action_toggle_theme |
Toggle between the configured dark and light themes. |
action_vim_left |
Switch to the previous main tab, unless a modal is open. |
action_vim_right |
Switch to the next main tab, unless a modal is open. |
check_action |
Enable or disable key bindings based on the active tab and selected event. |
compose |
Build the header, event bar, tabbed panels and footer. |
on_mount |
Initialise TUI state and start the application. |
on_tab_activated |
Track the active main tab and focus its table. |
refresh_all |
Refresh every panel to reflect the current database state. |
Source code in src/aimbat/_tui/app.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 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 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 | |
action_add_data
Prompt for a data type, then a data source, and add it to the project.
Source code in src/aimbat/_tui/app.py
action_new_snapshot
Prompt for an optional comment and create a snapshot of the current event's parameters.
Source code in src/aimbat/_tui/app.py
action_open_align
Open the alignment menu and run the chosen algorithm (ICCS or MCCC).
Source code in src/aimbat/_tui/app.py
action_open_interactive_tools
Open the interactive tools menu and run the chosen tool.
Source code in src/aimbat/_tui/app.py
action_open_parameters
Open the parameters modal for the current event, recreating ICCS if changed.
Source code in src/aimbat/_tui/app.py
action_refresh
action_show_help
action_toggle_theme
action_vim_left
Switch to the previous main tab, unless a modal is open.
action_vim_right
Switch to the next main tab, unless a modal is open.
check_action
Enable or disable key bindings based on the active tab and selected event.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
action
|
str
|
Name of the action being checked. |
required |
parameters
|
tuple[object, ...]
|
Arguments the action would be called with. |
required |
Returns:
| Type | Description |
|---|---|
bool | None
|
Whether the action is currently available. |
Source code in src/aimbat/_tui/app.py
compose
Build the header, event bar, tabbed panels and footer.
Source code in src/aimbat/_tui/app.py
on_mount
Initialise TUI state and start the application.
If no project exists in the current directory, prompts to create one. If a project exists but its database schema is out of date, prompts to upgrade before entry is allowed. Otherwise creates the ICCS instance for the current event (if any) and populates all panels. Also starts the periodic ICCS staleness check.
Source code in src/aimbat/_tui/app.py
on_tab_activated
Track the active main tab and focus its table.
Updates _active_tab, refreshes key-binding availability, moves
focus to the tab's DataTable unless a Tabs widget already has
focus, and clears the highlighted row's detail panels when
switching into an empty Live data or Snapshots tab.
Source code in src/aimbat/_tui/app.py
refresh_all
Refresh every panel to reflect the current database state.
The default choice after any mutation. A targeted
<Panel>.refresh_data(...) call is appropriate only when no other
panel's displayed data (including column_property counts and the
live quality getters) is affected by the change; record that
reasoning as a comment at the call site.
The event bar and all three panels share one session, so the id pool
uuid_shortener caches on it is fetched once for the whole refresh
rather than once per panel.
Source code in src/aimbat/_tui/app.py
main
Run the AIMBAT TUI until it exits.
Configures logging first, for the same reason aimbat.app.main does: the
aimbat-tui script reaches this function without passing through the CLI
entrypoint.
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If the TUI exited after an unhandled exception (a
non-zero |
Source code in src/aimbat/_tui/app.py
modals
Modal screens for the AIMBAT TUI.
Classes:
| Name | Description |
|---|---|
ActionMenuModal |
Generic context-action menu for a selected table row. |
AlignModal |
Menu for running ICCS or MCCC alignment. |
ConfirmModal |
Generic yes/no confirmation dialog. |
HelpModal |
Modal screen showing keyboard help for the current TUI tab. |
InteractiveToolsModal |
Menu for launching interactive matplotlib tools. |
NoProjectModal |
Shown on startup when no project exists. |
ParameterInputModal |
Modal for entering a new numeric/timedelta parameter value. |
ParametersModal |
View and edit all event processing parameters inline. |
SnapshotActionMenuModal |
Action menu for a snapshot row. |
SnapshotCommentModal |
Prompt for an optional snapshot comment. |
SnapshotDetailsModal |
Read-only view of the event parameters captured in a snapshot. |
ToolLaunchResult |
Result of choosing a tool in |
ActionMenuModal
Bases: ModalScreen[str | None]
Generic context-action menu for a selected table row.
Dismisses with the chosen action key, or None on cancel.
Methods:
| Name | Description |
|---|---|
__init__ |
Initialise the modal. |
action_cancel |
Dismiss without choosing an action. |
action_select |
Trigger selection of the row under the cursor. |
compose |
Build the title, action table and navigate/select/cancel hint. |
on_mount |
Populate the action table from |
row_selected |
Dismiss with the chosen action's key. |
Source code in src/aimbat/_tui/modals.py
__init__
Initialise the modal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
Heading displayed at the top of the menu. |
required |
actions
|
list[tuple[str, str]]
|
List of |
required |
Source code in src/aimbat/_tui/modals.py
action_cancel
action_select
compose
Build the title, action table and navigate/select/cancel hint.
Source code in src/aimbat/_tui/modals.py
on_mount
Populate the action table from _actions.
Source code in src/aimbat/_tui/modals.py
row_selected
AlignModal
Bases: ModalScreen[tuple[str, bool, bool, bool] | None]
Menu for running ICCS or MCCC alignment.
Dismisses with (algorithm, autoflip, autoselect, all_seismograms) or None. ICCS options: autoflip (f), autoselect (s). MCCC options: all seismograms (a).
Methods:
| Name | Description |
|---|---|
__init__ |
Initialise the modal with all toggles off and ICCS as the highlighted algorithm. |
action_cancel |
Dismiss without choosing an algorithm. |
action_select |
Trigger selection of the row under the cursor. |
action_toggle_all |
Toggle the MCCC all-seismograms option, if MCCC is the highlighted algorithm. |
action_toggle_autoflip |
Toggle the ICCS autoflip option, if ICCS is the highlighted algorithm. |
action_toggle_autoselect |
Toggle the ICCS autoselect option, if ICCS is the highlighted algorithm. |
compose |
Build the title, algorithm table, toggle options display and hint. |
on_mount |
Populate the algorithm table. |
row_highlighted |
Track the highlighted algorithm and show its option toggles. |
row_selected |
Dismiss with the chosen algorithm and the current toggle values. |
Source code in src/aimbat/_tui/modals.py
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 | |
__init__
Initialise the modal with all toggles off and ICCS as the highlighted algorithm.
Source code in src/aimbat/_tui/modals.py
action_cancel
action_select
action_toggle_all
Toggle the MCCC all-seismograms option, if MCCC is the highlighted algorithm.
action_toggle_autoflip
Toggle the ICCS autoflip option, if ICCS is the highlighted algorithm.
action_toggle_autoselect
Toggle the ICCS autoselect option, if ICCS is the highlighted algorithm.
compose
Build the title, algorithm table, toggle options display and hint.
Source code in src/aimbat/_tui/modals.py
on_mount
Populate the algorithm table.
Source code in src/aimbat/_tui/modals.py
row_highlighted
Track the highlighted algorithm and show its option toggles.
Source code in src/aimbat/_tui/modals.py
row_selected
Dismiss with the chosen algorithm and the current toggle values.
Source code in src/aimbat/_tui/modals.py
ConfirmModal
Bases: ModalScreen[bool | None]
Generic yes/no confirmation dialog.
Dismisses True on confirm, False on cancel.
Methods:
| Name | Description |
|---|---|
__init__ |
Initialise the modal. |
action_cancel |
Dismiss with cancellation. |
action_confirm |
Dismiss with confirmation. |
compose |
Build the confirmation message and confirm/cancel hint. |
Source code in src/aimbat/_tui/modals.py
__init__
__init__(message: str) -> None
Initialise the modal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Confirmation prompt displayed to the user. |
required |
action_cancel
action_confirm
compose
Build the confirmation message and confirm/cancel hint.
Source code in src/aimbat/_tui/modals.py
HelpModal
Bases: ModalScreen[None]
Modal screen showing keyboard help for the current TUI tab.
Methods:
| Name | Description |
|---|---|
__init__ |
Initialise the modal for the given tab. |
action_cancel |
Close the modal. |
compose |
Build the title, rendered help Markdown and close hint. |
Source code in src/aimbat/_tui/modals.py
__init__
__init__(tab_id: str) -> None
Initialise the modal for the given tab.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tab_id
|
str
|
The ID of the active |
required |
action_cancel
compose
Build the title, rendered help Markdown and close hint.
Source code in src/aimbat/_tui/modals.py
InteractiveToolsModal
Bases: ModalScreen[ToolLaunchResult | None]
Menu for launching interactive matplotlib tools.
Options are toggled with key bindings so no Checkbox widgets are needed.
Dismisses with a ToolLaunchResult or None on cancel.
Methods:
| Name | Description |
|---|---|
__init__ |
Initialise the modal with context enabled and all-seismograms/causal defaults. |
action_cancel |
Dismiss without choosing a tool. |
action_select |
Trigger selection of the row under the cursor. |
action_toggle_all |
Toggle the all-seismograms option. |
action_toggle_context |
Toggle the context option. |
action_toggle_zero_phase |
Toggle the causal/zero-phase filter option, if the highlighted tool supports it. |
compose |
Build the title, tool table, toggle options display and hint. |
on_mount |
Populate the tool table and set the causal default for the first tool. |
row_highlighted |
Track the highlighted tool and reset the causal toggle to its default. |
row_selected |
Dismiss with the chosen tool and the current toggle values. |
Source code in src/aimbat/_tui/modals.py
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 | |
__init__
Initialise the modal with context enabled and all-seismograms/causal defaults.
Source code in src/aimbat/_tui/modals.py
action_cancel
action_select
action_toggle_all
action_toggle_context
action_toggle_zero_phase
Toggle the causal/zero-phase filter option, if the highlighted tool supports it.
compose
Build the title, tool table, toggle options display and hint.
Source code in src/aimbat/_tui/modals.py
on_mount
Populate the tool table and set the causal default for the first tool.
Source code in src/aimbat/_tui/modals.py
row_highlighted
Track the highlighted tool and reset the causal toggle to its default.
Source code in src/aimbat/_tui/modals.py
row_selected
Dismiss with the chosen tool and the current toggle values.
Source code in src/aimbat/_tui/modals.py
NoProjectModal
Bases: ModalScreen[bool]
Shown on startup when no project exists.
Dismisses True if the user chose to create a project, False to quit.
Methods:
| Name | Description |
|---|---|
action_create |
Dismiss, indicating a project should be created. |
action_quit_app |
Dismiss, indicating the application should quit. |
compose |
Build the no-project message and create/quit hint. |
Source code in src/aimbat/_tui/modals.py
action_create
action_quit_app
compose
Build the no-project message and create/quit hint.
Source code in src/aimbat/_tui/modals.py
ParameterInputModal
Bases: ModalScreen[str | None]
Modal for entering a new numeric/timedelta parameter value.
Methods:
| Name | Description |
|---|---|
__init__ |
Initialise the modal. |
action_cancel |
Dismiss without a value. |
action_save |
Dismiss with the current input value. |
compose |
Build the title, current-value hint, input field and save/cancel hint. |
on_mount |
Focus the input field. |
submitted |
Dismiss with the submitted value. |
Source code in src/aimbat/_tui/modals.py
__init__
Initialise the modal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
param_name
|
str
|
Display name of the parameter being edited. |
required |
current
|
str
|
Current value shown as the default input text. |
required |
unit
|
str
|
Unit label appended to the hint (e.g. |
required |
Source code in src/aimbat/_tui/modals.py
action_cancel
action_save
compose
Build the title, current-value hint, input field and save/cancel hint.
Source code in src/aimbat/_tui/modals.py
on_mount
ParametersModal
Bases: ModalScreen[bool]
View and edit all event processing parameters inline.
Dismisses with True if any parameter was changed, False otherwise.
Methods:
| Name | Description |
|---|---|
__init__ |
Initialise the modal. |
action_cancel |
Close the modal, reporting whether any parameter was changed. |
action_select |
Trigger selection of the row under the cursor. |
compose |
Build the title, parameter table and navigate/edit/close hint. |
on_mount |
Configure the parameter table's columns and load its rows. |
row_selected |
Open the edit dialog for the selected parameter. |
Source code in src/aimbat/_tui/modals.py
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 | |
__init__
__init__(event_id: UUID) -> None
Initialise the modal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event_id
|
UUID
|
ID of the event whose parameters are displayed. |
required |
action_cancel
action_select
compose
Build the title, parameter table and navigate/edit/close hint.
Source code in src/aimbat/_tui/modals.py
on_mount
Configure the parameter table's columns and load its rows.
Source code in src/aimbat/_tui/modals.py
row_selected
Open the edit dialog for the selected parameter.
SchemaStaleModal
Bases: ModalScreen[bool]
Shown on startup when the project's database schema is out of date.
Blocks entry to the main UI entirely, mirroring NoProjectModal -
proceeding into panels that query columns the live schema doesn't have
would crash with a raw sqlalchemy.exc.OperationalError from whichever
panel happens to touch the drifted table first, rather than a clean,
attributable message. Dismisses True if the user chose to upgrade now,
False to quit.
Methods:
| Name | Description |
|---|---|
__init__ |
Initialise the modal. |
action_quit_app |
Dismiss, indicating the application should quit. |
action_upgrade |
Dismiss, indicating the database should be upgraded. |
compose |
Build the staleness message and upgrade/quit hint. |
Source code in src/aimbat/_tui/modals.py
__init__
__init__(message: str) -> None
Initialise the modal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
The staleness message from |
required |
action_quit_app
action_upgrade
compose
Build the staleness message and upgrade/quit hint.
Source code in src/aimbat/_tui/modals.py
SnapshotActionMenuModal
Bases: ModalScreen[tuple[str, bool, bool] | None]
Action menu for a snapshot row.
Shows context/all-seismograms toggles dynamically when a preview action is highlighted. Dismisses with (action, context, all_seismograms) or None.
Methods:
| Name | Description |
|---|---|
__init__ |
Initialise the modal. |
action_cancel |
Dismiss without choosing an action. |
action_select |
Trigger selection of the row under the cursor. |
action_toggle_all |
Toggle the all-seismograms option, if the highlighted action is a preview action. |
action_toggle_context |
Toggle the context option, if the highlighted action is a preview action. |
compose |
Build the title, action table, toggle options display and hint. |
on_mount |
Populate the action table from |
row_highlighted |
Track the highlighted action and show its toggles if it is a preview action. |
row_selected |
Dismiss with the chosen action and the current toggle values. |
Source code in src/aimbat/_tui/modals.py
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 | |
__init__
Initialise the modal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
Heading displayed above the action list. |
required |
actions
|
list[RowAction]
|
Row actions shown as rows (same registry the Snapshots tab's footer hotkeys are built from). |
required |
Source code in src/aimbat/_tui/modals.py
action_cancel
action_select
action_toggle_all
Toggle the all-seismograms option, if the highlighted action is a preview action.
action_toggle_context
Toggle the context option, if the highlighted action is a preview action.
compose
Build the title, action table, toggle options display and hint.
Source code in src/aimbat/_tui/modals.py
on_mount
Populate the action table from _actions.
Source code in src/aimbat/_tui/modals.py
row_highlighted
Track the highlighted action and show its toggles if it is a preview action.
Source code in src/aimbat/_tui/modals.py
row_selected
Dismiss with the chosen action and the current toggle values.
Source code in src/aimbat/_tui/modals.py
SnapshotCommentModal
Bases: ModalScreen[str | None]
Prompt for an optional snapshot comment.
Dismisses with the comment string (empty string = no comment) or None if the user cancels.
Methods:
| Name | Description |
|---|---|
action_cancel |
Dismiss without creating a snapshot. |
action_save |
Dismiss with the current comment input value. |
compose |
Build the title, comment input and save/cancel hint. |
on_mount |
Focus the comment input field. |
submitted |
Dismiss with the submitted comment. |
Source code in src/aimbat/_tui/modals.py
action_cancel
action_save
compose
Build the title, comment input and save/cancel hint.
Source code in src/aimbat/_tui/modals.py
on_mount
SnapshotDetailsModal
Bases: ModalScreen[None]
Read-only view of the event parameters captured in a snapshot.
Methods:
| Name | Description |
|---|---|
__init__ |
Initialise the modal. |
action_cancel |
Close the modal. |
compose |
Build the title, read-only parameter table and close hint. |
on_mount |
Populate the table from |
Source code in src/aimbat/_tui/modals.py
__init__
Initialise the modal.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title
|
str
|
Heading displayed above the parameter table. |
required |
rows
|
list[tuple[str, str]]
|
List of |
required |
Source code in src/aimbat/_tui/modals.py
action_cancel
compose
Build the title, read-only parameter table and close hint.
Source code in src/aimbat/_tui/modals.py
on_mount
Populate the table from _rows.
Source code in src/aimbat/_tui/modals.py
ToolLaunchResult
Bases: NamedTuple
Result of choosing a tool in InteractiveToolsModal.
causal is None for tools that don't take a causal argument.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tool
|
ForwardRef
|
|
None
|
context
|
ForwardRef
|
|
None
|
all_seismograms
|
ForwardRef
|
|
None
|
causal
|
ForwardRef
|
|
None
|