Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
import lyman | |
MOTION_THRESH = 1 | |
ARTIFACT_THRESH = 6 | |
if __name__ == "__main__": | |
all_subjects = lyman.determine_subjects() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
import tempfile | |
import shutil | |
import numpy as np | |
import pandas as pd | |
class EyeData(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
"""Extend ElementArrayStim to allow nonzero pedestal values of gratings. | |
This adapts a prior solution for adding a non-zero pedestal value to GratingStim: | |
https://github.com/nwilming/PedestalGrating/blob/master/pedestal_grating.py | |
Covered under the PsychoPy license, as it is a simple extension of the prior code: | |
Copyright (C) 2015 Jonathan Peirce | |
Distributed under the terms of the GNU General Public License (GPL). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Script for removing facial information from subject anatomical | |
# images before sharing the data. | |
# This required downloading the mri_deface binary and the face.gca and | |
# talairach_mixed_with_skull.gca atlas files from here: | |
# https://surfer.nmr.mgh.harvard.edu/fswiki/mri_deface | |
for s in $SUBJECTS; do | |
mkdir -p $s/anat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from matplotlib.colors import ListedColormap | |
from numpy import nan, inf | |
# Used to reconstruct the colormap in viscm | |
parameters = {'xp': [3.559581561226338, 17.887066941343306, -44.539833643452027, -35.329307327662548, -2.5807693159666485], | |
'yp': [-7.9678362573099264, -64.766081871344994, -32.529239766081844, 43.201754385964932, 6.359649122807042], | |
'min_Jp': 2.08370436331, | |
'max_Jp': 99.3232413179} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib as mpl | |
lut =[[0.97535488, 0.96717973, 0.97826556], | |
[0.96210335, 0.958145, 0.96901356], | |
[0.94896295, 0.94912471, 0.96025478], | |
[0.93577938, 0.94018409, 0.95192643], | |
[0.92251197, 0.93134405, 0.94395255], | |
[0.9091769, 0.92260072, 0.93627962], | |
[0.89579025, 0.91394725, 0.92888411], | |
[0.88237732, 0.90537279, 0.92174829], |