- Jonathan Whitmore, PhD
- Data Scientist, SVDS
- @jbwhitmore
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
6.258113587267615912e+03 3.931454234930131797e-03 -3.926501081758206751e-03 | |
6.258140724533569482e+03 5.700400599615185193e-03 -5.695357895812987875e-03 | |
6.258167861917198934e+03 -1.910863961985542758e-02 1.911377276713767392e-02 | |
6.258194999418505176e+03 2.727114697218313566e-03 -2.721889471251378104e-03 | |
6.258222137037488210e+03 5.522115735531407665e-03 -5.516796273862097956e-03 | |
6.258249274774148944e+03 -6.837686370450013484e-03 6.843102550134077394e-03 | |
6.258276412628488288e+03 1.073295997916567934e-02 -1.072744439924019216e-02 | |
6.258303550600506242e+03 1.717148043567995330e-02 -1.716586263253182948e-02 | |
6.258330688690204624e+03 -3.305773816682400223e-03 3.311496787465022153e-03 | |
6.258357826897581617e+03 1.270592765964484450e-02 -1.270009645751350724e-02 |
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
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
export CLICOLOR=1 | |
# ls colors, see: http://www.linux-sxs.org/housekeeping/lscolors.html | |
# Reset | |
Color_Off='\e[0m' # Text Reset | |
# Regular Colors | |
Black='\e[0;30m' # Black | |
Red='\e[0;31m' # Red |
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 cPickle as pickle | |
# cd /Users/jwhitmore/Desktop/Research/Projects/thar-attached/data/ | |
import gzip | |
import pandas as pd | |
from glob import glob | |
def clean_headerfile(header_dict): | |
clean_file = {} | |
for key, value in header_dict.iteritems(): |
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.
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
c = get_config() | |
### If you want to auto-save .html and .py versions of your notebook: | |
# modified from: https://github.com/ipython/ipython/issues/8009 | |
import os | |
from subprocess import check_call | |
def post_save(model, os_path, contents_manager): | |
"""post-save hook for converting notebooks to .py scripts""" | |
if model['type'] != 'notebook': | |
return # only do this for notebooks |