Skip to content

Instantly share code, notes, and snippets.

@gidden
Created October 26, 2013 20:41
Show Gist options
  • Save gidden/7174306 to your computer and use it in GitHub Desktop.
Save gidden/7174306 to your computer and use it in GitHub Desktop.
using dict.items
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