Skip to content

Instantly share code, notes, and snippets.

@Xjs
Last active October 11, 2018 10:08
Show Gist options
  • Save Xjs/15ec763b013e96f9ff0aa35cd9030bbe to your computer and use it in GitHub Desktop.
Save Xjs/15ec763b013e96f9ff0aa35cd9030bbe to your computer and use it in GitHub Desktop.
Recursively iterate through parameter spaces
def measure(liste):
if not liste:
nimm_spektrum_auf()
return
param, tail = liste[0], liste[1:] # ich glaub, so kann man des schreiben
name, values = param #jetzt ist name z B. = "magnetfeld" und values die Werte dafür
for v in values:
set(**{name:v})
measure(tail)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment