Skip to content

Commit 6a8a0df

Browse files
committed
Fix test_uncertainty_metadata.py: solutions is a dict, not a list
1 parent 770e4d6 commit 6a8a0df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test_uncertainty_metadata.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@
3838
sub.save()
3939
sub2 = load(tmpdir)
4040

41-
# Verify
42-
sol2 = sub2.get_event("rmdc26_2001").solutions[0]
41+
# Verify - get the first (and only) solution from the dict
42+
event2 = sub2.get_event("rmdc26_2001")
43+
sol2 = list(event2.solutions.values())[0]
4344

4445
print("\n✓ All tests passed!")
4546
print("\nUncertainty metadata:")

0 commit comments

Comments
 (0)