Skip to content

Instantly share code, notes, and snippets.

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
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.
View error.py
/Users/dforeman/miniconda3/envs/alpha-mlt-grids/lib/python3.7/site-packages/tables/attributeset.py:464: NaturalNameWarning: object name is not a valid Python identifier: 'axis1_name[Fe/H]'; it does not match the pattern ``^[a-zA-Z_][a-zA-Z0-9_]*$``; you will not be able to use natural naming to access this object; using ``getattr()`` will still work, though
check_attribute_name(name)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-18ca68e08527> in <module>
2 bands = ['G', 'BP', 'RP', 'J', 'H', 'K']
3
----> 4 amlt.interp_mag(pars, bands)
~/src/timothydmorton/alpha-mlt-grids/alpha_mlt/models.py in interp_mag(self, pars, bands)
View all_the_frameworks.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View eb.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View rv-multi.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View eb.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.