get_box_from_gro

gmx.get_box_from_gro(fname)[source]

Extract the simulation box dimensions from a .gro file.

Parameters:

fname (str or bytes or os.PathLike) – Name of the .gro file.

Returns:

box (list) – A list containing the simulation box dimensions read from the last line of the input file.