def process(self, args):
     adjusted_args = []
     for arg in args:
         if (arg == "--Verbose"): arg = "--verbose=1"
         adjusted_args.append(arg)
     command_line = libtbx.option_parser.option_parser.process(
         self, adjusted_args)
     opts = command_line.options
     if opts.n_scatterers is not None:
         opts.n_scatterers = [int(x) for x in opts.n_scatterers.split(',')]
     sg_set_flags = [
         opts.space_group_set == x for x in self.space_group_sets
     ]
     if sg_set_flags.count(True) == 0 and command_line.args:
         sg_symbols = command_line.args
     else:
         sg_symbols = debug_utils.get_test_space_group_symbols(
             *sg_set_flags)
     command_line.space_group_info_list = [
         sgtbx.space_group_info(symbol) for symbol in sg_symbols
     ]
     del command_line.options.space_group_set
     # convert to list since attributes are deleted in the loop
     for attr in list(command_line.options.__dict__.keys()):
         if getattr(command_line.options, attr) in ('', None):
             delattr(command_line.options, attr)
     command_line.args = ()
     return command_line
 def process(self, args):
   adjusted_args = []
   for arg in args:
     if (arg == "--Verbose"): arg = "--verbose=1"
     adjusted_args.append(arg)
   command_line = libtbx.option_parser.option_parser.process(
     self, adjusted_args)
   opts = command_line.options
   if opts.n_scatterers is not None:
     opts.n_scatterers = [ int(x) for x in opts.n_scatterers.split(',') ]
   sg_set_flags = [ opts.space_group_set == x
                    for x in self.space_group_sets ]
   if sg_set_flags.count(True) == 0 and command_line.args:
     sg_symbols = command_line.args
   else:
     sg_symbols = debug_utils.get_test_space_group_symbols(*sg_set_flags)
   command_line.space_group_info_list = [
     sgtbx.space_group_info(symbol) for symbol in sg_symbols ]
   del command_line.options.space_group_set
   for attr in command_line.options.__dict__.keys():
     if getattr(command_line.options, attr) in ('', None):
       delattr(command_line.options, attr)
   command_line.args = ()
   return command_line
예제 #3
0
def run_all():
  sglist = debug_utils.get_test_space_group_symbols( False, False, True, False)
  for sg in sglist:
    run_single(sg)