Skip to content

Instantly share code, notes, and snippets.

View petigura's full-sized avatar

Erik Petigura petigura

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Imports and defining some functions "
]
},
{
@petigura
petigura / MCMC-sampling from circular posterior.ipynb
Last active November 6, 2019 22:39
## MCMC Sampling From Circular Posterior
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@petigura
petigura / first_figure.html
Created July 20, 2019 00:24
plotly spectral viewer
This file has been truncated, but you can view the full file.
<html>
<head><meta charset="utf-8" /></head>
<body>
<div>
<script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
<script type="text/javascript">/**
* plotly.js v1.48.3
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@petigura
petigura / Correcting Errors in the Labels a Posteriori.ipynb
Created January 11, 2019 02:41
Correcting Errors in the Labels a Posteriori.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@petigura
petigura / 2018_11-13_Stellar-radii.ipynb
Last active November 13, 2018 22:29
2018_11-13_Stellar-radii
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import pandas as pd
from cStringIO import StringIO as sio # Let's us treat strings like files
spex = """\
epic,teff,uteff
100000000,5000,100
200000000,4000,100
"""
specmatch = """\