Skip to content

Startup window: second file column, skip init/startup files, lattice options - #22

Merged
DavidSagan merged 1 commit into
mainfrom
startup-more-options
Nov 7, 2026
Merged

DavidSagan merged 1 commit into
mainfrom
startup-more-options

Conversation

@DavidSagan

Copy link
Copy Markdown
Member

Summary

Startup window changes.

Files in two columns

Below the init file, lattice file and working directory, the other input files are now in two columns:

First column Second column
Beam file Beam init position file (new, -beam_init_position_file)
Data file Variable file (moved from the first column)
Startup file Building wall file (new, -building_wall_file)
Plot file

As with the other files, an empty Building wall field shows the init file's building_wall_file greyed.

Skipping init and startup files

  • Use init file (checked by default): unchecked passes -noinit, so no init file is read, not even a tao.init in the working directory. The Init file field is disabled, and Start needs a lattice file.
  • Run startup file (existing): unchecked passes -nostartup. The Startup file field is now disabled when it is off.

Lattice options and commands

  • Reverse lattice: checkbox, -reverse.
  • Slice lattice: element list, -slice_lattice.
  • Start branch at: element, -start_branch_at.
  • Extra commands: Tao commands separated by ;, run right after startup, after the startup file.
    • They are run by the GUI, like the On/Off settings, and echoed in the console.
    • They are not passed as -command, because Tao runs -command from its own main loop, which pytao doesn't use. Through pytao, -command is silently ignored; I tested this.
  • Extra Tao arguments: stays, for anything else.

The command preview shows the switches, and on its "then:" line the extra commands. Recent startups save the new settings; older entries load with the defaults.

Testing

  • 60 tests pass and 1 is skipped, locally and against the conda-forge Tao used in CI. 4 are new:
    • the new switches and their values, and extra commands split on ; (empty ones dropped);
    • Use init file off: init and startup files ignored, a lattice file required, -noinit/-nostartup, and the Recent label from the lattice;
    • a real start with Use init file off in tests/files, which has a tao.init:
      • the tao.init's data is not read;
      • -start_branch_at 5 makes QD the first element;
      • both extra commands take effect and are echoed;
    • the Startup file field disabled when Run startup file is off.
  • Offscreen screenshot of the window checked by hand.

🤖 Generated with Claude Code

…options

- Files in two columns: beam, data, startup, plot | beam init position
  (new), variable (moved), building wall (new).
- "Use init file" (unchecked: -noinit, even with a tao.init in the
  working directory; a lattice file is then required) beside "Run
  startup file" (-nostartup); the corresponding file field is disabled
  when switched off.
- Reverse lattice (-reverse), Slice lattice (-slice_lattice), Start
  branch at (-start_branch_at).
- Extra commands, ";"-separated, run by the GUI right after startup:
  Tao's -command is handled in its main loop, which pytao does not run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DavidSagan
DavidSagan merged commit 47f9591 into main Nov 7, 2026
2 checks passed
@DavidSagan
DavidSagan deleted the startup-more-options branch November 7, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant