Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/single_bead.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,7 @@ HLYS: { ff: !Alias LYS }
HTYR: { ff: !Alias TYR }
HCYS: { ff: !Alias CYS }
CYX: { ff: !Alias CYS }
CSS: { radius: 3.6, formfactor: !Alias CYS }

# PDB atom name aliases — map multi-character PDB names to their
# element form factors so atomic-resolution structures work with
Expand Down
6 changes: 3 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ pub enum Commands {
#[clap(short = 'p', long, default_value = "6")]
pmax: usize,
/// Cubic box side length (Å)
#[clap(short = 'b', long = "box", default_value = "200.0")]
side_length: f64,
#[clap(short = 'b', long = "box")]
side_length: Option<f64>,
#[clap(flatten)]
solvent: SolventArgs,
},
Expand Down Expand Up @@ -291,7 +291,7 @@ fn command_to_scheme(
solvent,
} => (
IntensityScheme::Direct { pmax },
Some([side_length; 3]),
side_length.map(|s| [s; 3]),
solvent.to_config(),
),
Commands::Multipole {
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ impl Pripps {
));
}
structure.box_sides = Some(Vector3::from(box_sides));
} else if xtcfile.is_none() {
structure.box_sides = Some(Vector3::from([200.0; 3]));
}

let active_solvent = solvent.filter(|cfg| cfg.is_active());
Expand Down
Loading