Skip to content

Instantly share code, notes, and snippets.

@amysteier
Created December 2, 2021 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amysteier/c7e289912f30e2d3376d2e3f1bb85852 to your computer and use it in GitHub Desktop.
Save amysteier/c7e289912f30e2d3376d2e3f1bb85852 to your computer and use it in GitHub Desktop.
for i in range(len(studies)):
study = studies[i]
print("Study " + str(i))
for j in range(len(study.trials)):
state = str(study.trials[j].state)[11:]
if state == "COMPLETE":
sqs = study.trials[j].values[0]
print("\tTrial " + str(j) + " has state " + state + " and SQS " + str(sqs))
else:
print("\tTrial " + str(j) + " has state " + state)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment