MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / get_names

Function get_names

helpers/parameter_generator.py:79–96  ·  view source on GitHub ↗

Get names of all parameters. Parameters ---------- infos : list Content of the config header file. Returns ------- names : list Names of all parameters.

(infos)

Source from the content-addressed store, hash-verified

77
78
79def get_names(infos):
80 """Get names of all parameters.
81
82 Parameters
83 ----------
84 infos : list
85 Content of the config header file.
86
87 Returns
88 -------
89 names : list
90 Names of all parameters.
91 """
92 names = []
93 for x in infos:
94 for y in x:
95 names.append(y["name"][0])
96 return names
97
98
99def get_alias(infos):

Callers 1

gen_parameter_codeFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected