CLI
Functions for the command line interface, driven by the tomso
script. You probably want to use the functions in other modules
directly.
-
tomso.cli.get_parser()[source]
Returns the argparse.ArgumentParser
used by the tomso
command-line script.
-
tomso.cli.starts_or_ends_with(s, w)[source]
Returns True
if string s starts or ends with string w, case
insensitively.
-
tomso.cli.guess_format(filename)[source]
Try to guess the format of filename by testing if it starts or
ends with ‘fgong’, ‘amdl’, ‘gyre’, ‘gsm’, ‘history’, ‘profile’,
‘mode’ or ‘summary’. Exits at first match so
profile1.data.FGONG returns fgong, not profile.
-
tomso.cli.info(args)[source]
Info function for tomso command-line script.
-
tomso.cli.convert(args)[source]
Convert function for tomso command-line script.
-
tomso.cli.plot(args)[source]
Plot function for tomso command-line script.