Skip to content

fix: allow direct scheme with XTC; add CSS alias to single_bead.yaml#3

Open
pinedaps wants to merge 1 commit into
masterfrom
fix/direct-box-xtc-and-css-alias
Open

fix: allow direct scheme with XTC; add CSS alias to single_bead.yaml#3
pinedaps wants to merge 1 commit into
masterfrom
fix/direct-box-xtc-and-css-alias

Conversation

@pinedaps

@pinedaps pinedaps commented May 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Box length fix: --box for the direct subcommand is now Option<f64> with no clap default. When omitted without an XTC the 200 Å fallback is applied in lib.rs, preserving existing single-frame behaviour. Previously, the clap default of 200.0 was always passed as Some(...), causing a hard error whenever --box was not explicitly given alongside an XTC file.
  • CSS alias: Added CSS (disulfide-bonded cysteine, used in Faunus/Calvados coarse-grained simulations) as an alias for CYS in assets/single_bead.yaml.

Test plan

  • direct without --box and without --xtcfile still runs (uses 200 Å default)
  • direct with --box <L> and without --xtcfile still runs (uses provided value)
  • direct with --xtcfile and without --box now runs (box read from trajectory)
  • direct with both --xtcfile and --box still errors as expected
  • CG trajectory with CSS beads resolves correctly against single_bead.yaml

🤖 Generated with Claude Code

…CSS alias

- `--box` for `direct` is now optional (no default_value in clap); when
  omitted without an XTC the 200 Å fallback is applied in lib.rs, preserving
  existing single-frame behaviour
- Removes the hard error that fired even when -b was not supplied, allowing
  trajectory-averaged SAXS via `direct` without specifying a box
- Add CSS (disulfide-bonded cysteine) as an alias for CYS in single_bead.yaml

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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