Esempio n. 1
0
__doc__ += (f'{tcore.ref_mda}'
            f'{tcore.ref_mda_selection}'
            f'{tcore.ref_plottemplates_param}')

_help = 'Calculate angular oscillation of a plane along the trajectory.'
_name = 'pangle'

ap = libcli.CustomParser(
    description=_BANNER + __doc__,
    formatter_class=argparse.RawDescriptionHelpFormatter,
)

libcli.add_version_arg(ap)
libcli.add_topology_arg(ap)
libcli.add_trajectories_arg(ap)
libcli.add_plane_selection_arg(ap)
libcli.add_angle_unit_arg(ap)
libcli.add_reference_frame_arg(ap)
libcli.add_slice_arg(ap)
libcli.add_data_export_arg(ap)
libcli.add_plot_arg(ap)


def _ap():
    return ap


def main(topology,
         trajectories,
         plane_selection,
Esempio n. 2
0
def test_trajectories(cmd, expected):
    """Test trajectories argument."""
    parser = argparse.ArgumentParser()
    lc.add_trajectories_arg(parser)
    v = vars(parser.parse_args(cmd.split()))
    assert v['trajectories'] == expected