main#

main(args=None, ret=False)[source]#

Command line function to run sansmic.

If this function is run from somewhere other than the command line, then arguments can be passed in to control execution as a list of strings. The ret argument can be set to True to return the results when using this as a function, also.

Parameters:
  • args (Namespace or list[str]) – Arguments as a list of strings that would be used on the command-line.

  • ret (bool) – Should the function return a results object, by default False.