Skip to content

Instantly share code, notes, and snippets.

@raganmd
Last active October 23, 2023 19:32
Show Gist options
  • Save raganmd/7bf8b4183927334a2833467f270b1605 to your computer and use it in GitHub Desktop.
Save raganmd/7bf8b4183927334a2833467f270b1605 to your computer and use it in GitHub Desktop.
td_constant_chop_par_map_from_par_names
par_map = {}
target = op("constant2")
for each_par in target.pars('name*'):
par_map[each_par.val] = f"value{tdu.digits(each_par.name)}"
print(par_map)
target.store("par_map", par_map)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment