Skip to content

Instantly share code, notes, and snippets.

import exoplanet as xo
import pymc3 as pm
import numpy as np
import matplotlib.pyplot as plt
import theano.tensor as tt
with pm.Model() as model:
ecs = xo.UnitDisk("ecs", testval=np.array([1e-5, -1.e-5]))
ecc = pm.Deterministic("ecc", tt.sqrt(tt.sum(ecs ** 2)))
omega = pm.Deterministic("omega", tt.arctan2(ecs[1], ecs[0]))
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrtommyb
mrtommyb / biased coin flip.ipynb
Created November 13, 2020 19:22
Biased coin flip with hyperparameter in p
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
import pandas as pd
from numpy import random
from numpy.random import poisson, uniform, beta
from tqdm import tqdm
msun = 1.9891e30
rsun = 695500000.0
G = 6.67384e-11
AU = 149597870700.0
@mrtommyb
mrtommyb / Pandora_Vis_Sim_cleaned_v01.ipynb
Last active June 3, 2022 17:25
Pandora Vis Sim Notebook by Tom
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrtommyb
mrtommyb / L98-flare-model.ipynb
Created July 8, 2022 13:58
Showing modeling some flares problematically
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrtommyb
mrtommyb / pandora_sensitivity.ipynb
Last active July 8, 2022 19:15
Pandora sensitivity
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrtommyb
mrtommyb / simulate_red_giants_roman.ipynb
Last active January 29, 2023 12:05
Exploration with with Gadfly
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.