MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / updateDefaults

Function updateDefaults

src/pyOpenMS/pyTOPP/common.py:44–56  ·  view source on GitHub ↗
(args, defaults)

Source from the content-addressed store, hash-verified

42 return False
43
44def updateDefaults(args, defaults):
45 if args.ini:
46 param = pms.Param()
47 fh = pms.ParamXMLFile()
48 fh.load(args.ini, param)
49 defaults.update(param)
50 elif args.dict_ini:
51 with open(args.dict_ini, "r") as fp:
52 try:
53 dd = eval(fp.read())
54 except:
55 raise Exception("could not parse %s" % args.dict_ini)
56 defaults.update(dd)

Callers 5

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls 6

loadMethod · 0.95
ExceptionClass · 0.85
ParamXMLFileMethod · 0.80
ParamMethod · 0.45
updateMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected