Replace Owl with focusanimal variable
authorJustin Kitzes <jkitzes@berkeley.edu>
Mon, 4 Mar 2013 18:40:06 +0000 (10:40 -0800)
committerW. Trevor King <wking@tremily.us>
Fri, 8 Nov 2013 16:58:56 +0000 (08:58 -0800)
python/mean_sightings-full.py

index 1b24f35244e707942969bbc553eadfe6ffa963bd..c9bddd4aa3fe2b81414b373be605c4c4f7a45e88 100755 (executable)
@@ -40,7 +40,7 @@ def get_sightings_loop(filename, focusanimal):
     totalrecs = 0
     totalcount = 0
     for rec in tab:
-        if rec['animal'] == 'Owl':
+        if rec['animal'] == focusanimal:
             totalrecs += 1
             totalcount += rec['count']