View live-intro-to-jax.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View numpyro_ncx2.py
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 tensorflow_probability.substrates.jax as tfp | |
import jax.numpy as jnp | |
import jax.scipy as jsp | |
from jax import lax | |
import jax.random as random | |
from numpyro.distributions import constraints | |
from numpyro.distributions.distribution import Distribution | |
from numpyro.distributions.util import is_prng_key, promote_shapes, validate_sample | |
def _random_chi2(key, df, shape=(), dtype=jnp.float_): |
View environment.yml
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
channels: | |
- conda-forge | |
dependencies: | |
- python =3.9 | |
- numpy | |
- mkl-service | |
- scipy | |
- matplotlib | |
- jupyter | |
- jupyterlab |
View rtds_mirror.py
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 python | |
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import time | |
import json | |
import argparse | |
import requests | |
import tempfile |
View emcee_pz_dist.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View deterministic_op.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View mp-bug.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View eleanor_profile.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gaia_lbol.py
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 astropy.io import ascii | |
import astropy.units as u | |
from astropy.coordinates import SkyCoord | |
from astroquery.gaia import Gaia | |
def find_one(ra, dec, mag): | |
coord = SkyCoord(ra=ra, dec=dec, unit=(u.deg, u.deg)) | |
radius = 5 * u.arcsec | |
j = Gaia.cone_search_async(coord, radius) |
View rot-term-demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder