Skip to content

Commit

Permalink
Fix example_llapi_readout.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DraTeots committed Nov 10, 2016
1 parent 0a2f170 commit 259afce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/example_llapi_readout.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@
print(constant_set.data_list)

print("\n\n== Getting assignment ==")
assignment = provider.get_assignment(1, "/test/test_vars/test_table2", "test") # run, table, variation
assignment = provider.get_assignment("/test/test_vars/test_table2", 1, "test") # run, table, variation
print(assignment)
print(assignment.constant_set.data_table)

# One can use previously got objects to do the same
variation = provider.get_variation("default") # That is how you get variation
table = provider.get_type_table("/test/test_vars/test_table")
assignment = provider.get_assignment(1, table, variation) # run, table, variation
assignment = provider.get_assignment(table, 1, variation) # run, table, variation
print(assignment)
print(assignment.constant_set.data_table)

Expand Down

0 comments on commit 259afce

Please sign in to comment.