def run(self, args, extra_args): mdt.init_user_settings(pass_if_exists=True) for ind, env in enumerate(cl_environments.CLEnvironmentFactory.smart_device_selection()): print('Device {}:'.format(ind)) if args.long: print(repr(env)) else: print(str(env))
def run(self, args, extra_args): mdt.init_user_settings(pass_if_exists=True) meta_info = mdt.get_models_meta_info() models = mdt.get_models_list() max_model_name = max(map(len, models)) for model in models: if args.long: print(('%-' + str(max_model_name + 2) + 's%-s') % (model, meta_info[model]['description'])) else: print(model)
def __init__(self): self.parse_unknown_args = False mdt.init_user_settings(pass_if_exists=True)
def __init__(self): super(GUI, self).__init__() init_user_settings(pass_if_exists=True)
def __init__(self): init_user_settings(pass_if_exists=True)
def run(self, args): mdt.init_user_settings(pass_if_exists=args.pass_if_exists)
def __init__(self): super(GenerateBvecBval, self).__init__() mdt.init_user_settings(pass_if_exists=True)