Created
October 26, 2013 20:41
-
-
Save gidden/7174306 to your computer and use it in GitHub Desktop.
using dict.items
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 test_abundance_by_z_for_soundness(): | |
for k, vs in data.abundance_by_z.items(): | |
if vs: | |
assert(abs(1-sum([v[1] for v in vs]))<1e-12) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment