Skip to content

Instantly share code, notes, and snippets.

View ralphpeterson's full-sized avatar

Ralph Emilio Peterson ralphpeterson

  • New York University
  • New York, New York
View GitHub Profile
@ralphpeterson
ralphpeterson / find_good_frames.py
Last active December 27, 2015 19:28
Script to find the percentage of good frames
from pymouse import hdf
import numpy as np
import os
store = hdf.HDFStorage("/Users/DattaLab/Desktop/repackedh5s/6-18-13 25% 2, 5-DMP in DPG.h5")
variables_to_load = ["mouse_name","frame_id","good_frame"]
my_query = None
scalars,arrays = store.select(variables=variables_to_load, query=my_query, experiments=store.experiments[:])