MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _generate_project_config

Function _generate_project_config

SLiCAP/SLiCAPconfigure.py:243–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 return commands
242
243def _generate_project_config():
244 project_paths = {"html" : 'html/',
245 "cir" : 'cir/',
246 "lib" : 'lib/',
247 "csv" : 'csv/',
248 "txt" : 'txt/',
249 "img" : 'img/',
250 "sch" : 'sch/',
251 "sphinx" : 'sphinx/',
252 "tex" : 'tex/',
253 "tex_snippets" : 'tex/SLiCAPdata/',
254 "rst_snippets" : 'sphinx/SLiCAPdata/',
255 "html_snippets" : 'sphinx/SLiCAPdata/',
256 "myst_snippets" : 'sphinx/SLiCAPdata/',
257 "md_snippets" : 'sphinx/SLiCAPdata/',
258 "project" : os.path.abspath('.') + '/'
259 }
260 project_config = configparser.ConfigParser()
261 project_config['math'] = {"laplace" : "s",
262 "frequency" : "f",
263 "numer" : "ME",
264 "denom" : "ME",
265 "lambdify" : "numpy",
266 "stepfunction" : True,
267 "factor" : True,
268 "maxrecsubst" : 15,
269 "reducematrix" : True,
270 # "reducecircuit" : True
271 }
272 project_config['balancing'] = {"update_srcnames" : True,
273 "pair_ext" : "P,N",
274 "remove_param_pair_ext" : True}
275 project_config['plot'] = {"axisheight" : 5,
276 "axiswidth" : 7,
277 "defaultcolors" : "r,b,g,c,m,y,k",
278 "defaultmarkers" : "",
279 "legendloc" : "best",
280 "plotfontsize" : 12,
281 "plotfiletype" : "svg",
282 "linewidth" : 2,
283 "markersize" : 7,
284 "linetype" : "-",
285 "svgmargin" : 1
286 }
287 project_config['gaincolors'] = {"asymptotic" : "r",
288 "gain" : "b",
289 "loopgain" : "k",
290 "servo" : "m",
291 "direct" : "g",
292 "ideal" : "c",
293 "vi" : "c"
294 }
295 project_config['display'] = {'Hz' : True,
296 'Digits' : 4,
297 'notebook' : False,
298 'scalefactors' : False,
299 'engnotation' : True}
300 try:

Callers 2

_read_project_configFunction · 0.85
_update_ini_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected