Commits

Joe Kington committed 1915f58

Added some generic methods to view lots of measurements

Comments (0)

Files changed (1)

 import analysis
 
 def main():
-    for measurement in data.dogs['/Krupp Krulle']:
+    #view_dogs_measurements('Krupp Krulle')
+    walk_through_all_measurements()
+
+def walk_through_all_measurements():
+    for measurement in data.measurements:
+        plot_measurement(measurement)
+        plt.show()
+
+def view_dogs_measurements(dogname):
+    # I need to rebuild data.hdf5 so that there aren't leading
+    # slashes before the dog names!!!
+    for measurement in data.dogs['/' + dogname]:
         plot_measurement(measurement)
         plt.show()