Skip to content

Instantly share code, notes, and snippets.

@alexbw
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbw/d60a222a7929b3712c2e to your computer and use it in GitHub Desktop.
Save alexbw/d60a222a7929b3712c2e to your computer and use it in GitHub Desktop.
making movies
_,roi = get_behavior(store_name, experiments=list(train_experiments), array_names=["rect_ROI"])
roi = roi['rect_ROI']
height,width = roi[train_experiments[0]]
Parallel(n_jobs=24)(delayed(pymouse.show_syllable)(labels,
images, df,
height=height,
width=width,
which_syllable=which_syllable,
num_instances_to_grab=45,
desired_length=120) for which_syllable in np.unique(labels));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment