Esempio n. 1
0
 def __call__(self, parser, namespace, values, option_string=None):
     name = getattr(namespace, 'algorithm_name')
     if MPI.COMM_WORLD.rank != 0:
         parser.exit()
     
     if name is not None:
         parser.exit(0, plugin_manager.format_help('Algorithm', name))
     else:
         parser.exit(0, parser.format_help())
Esempio n. 2
0
 def __call__(self, parser, namespace, values, option_string=None):
     if comm.rank != 0:
         parser.exit(0)
         
     from nbodykit import plugin_manager
     parser.exit(0, plugin_manager.format_help(extension_type, *values))