Add capitalization correction to loop function
authorJustin Kitzes <jkitzes@berkeley.edu>
Mon, 4 Mar 2013 18:48:38 +0000 (10:48 -0800)
committerW. Trevor King <wking@tremily.us>
Fri, 8 Nov 2013 16:58:57 +0000 (08:58 -0800)
python/mean_sightings-full.py

index c9bddd4aa3fe2b81414b373be605c4c4f7a45e88..a76c416ce756e5caf34e3dbc00acf95c46a91004 100755 (executable)
@@ -36,6 +36,9 @@ def get_sightings_loop(filename, focusanimal):
     # Load table
     tab = ml.csv2rec(filename)
 
+    # Standardize capitalization of focusanimal
+    focusanimal = focusanimal.capitalize()
+
     # Loop through all records, countings recs and animals
     totalrecs = 0
     totalcount = 0