This file contains hidden or 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 sys | |
import time | |
# main | |
parms = sys.argv | |
for p in parms: | |
time.sleep(5) |
This file contains hidden or 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
for f in `find ./ -name "*.zip"` ; do p=`pwd`; d=`dirname $f`; cd $d; b=`basename $f`; unzip -o $b; cd $p; done; | |
find . -name *.txt -exec rm -rf {} \; | |
for f in `find ./ -name "*.py"` ; do p=`pwd`; d=`dirname $f`; cd $d; b=`basename $f`; code2pdf -l -s a4 $b; cd $p; done | |
for f in */; do p=`pwd`; d=`dirname $f`; cd $d; pdftk "$f"*.pdf output "$p"/"${f::-1}".pdf; cd $p; done | |
This file contains hidden or 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 subprocess | |
import numpy as np | |
template = 'python ../code/mySpitzerTransit/4_finalPipelineMCMC.py ' | |
template += '{0} {1} {2} {3} {4} {5} {6} > outfile_{7}.txt' | |
planets = ['Hatp32b', | |
'XO1b', | |
'Hatp1b', | |
'Wasp17b', |
This file contains hidden or 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 bokeh.io import save, export_svgs | |
from bokeh.plotting import figure, output_file, show | |
filename = "test.svg" | |
p = figure(plot_width=971, plot_height=600) | |
p.circle([1,2,3,4,5], [2,5,8,2,7], size=10) | |
# Set axis titles | |
p.xaxis.axis_label = "Important" |
OlderNewer