Last active
October 11, 2018 10:08
-
-
Save Xjs/15ec763b013e96f9ff0aa35cd9030bbe to your computer and use it in GitHub Desktop.
Recursively iterate through parameter spaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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