From: Justin Kitzes Date: Mon, 4 Mar 2013 18:40:06 +0000 (-0800) Subject: Replace Owl with focusanimal variable X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=86b33b29897c26313e66971317ef313bf580bc8e;p=swc-testing-nose.git Replace Owl with focusanimal variable --- diff --git a/python/mean_sightings-full.py b/python/mean_sightings-full.py index 1b24f35..c9bddd4 100755 --- a/python/mean_sightings-full.py +++ b/python/mean_sightings-full.py @@ -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']