Skip to content

Instantly share code, notes, and snippets.

@rbiswas4
Last active November 29, 2017 21:27
Show Gist options
  • Save rbiswas4/99809bd4531076efa6ff6b52be221591 to your computer and use it in GitHub Desktop.
Save rbiswas4/99809bd4531076efa6ff6b52be221591 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "from astropy.cosmology import Planck15 as cosmo",
"execution_count": 1,
"outputs": []
},
{
"metadata": {
"trusted": true
},
"cell_type": "code",
"source": "# From https://gist.github.com/rbiswas4/37226da7eebaad017dc6a1e9e7e04c38\nz_peak = 1.15\ncosmo.age(1.15)",
"execution_count": 4,
"outputs": [
{
"output_type": "execute_result",
"execution_count": 4,
"data": {
"text/plain": "<Quantity 5.300188595778311 Gyr>",
"text/latex": "$5.3001886 \\; \\mathrm{Gyr}$"
},
"metadata": {}
}
]
}
],
"metadata": {
"kernelspec": {
"name": "python3",
"display_name": "Python 3",
"language": "python"
},
"language_info": {
"nbconvert_exporter": "python",
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"name": "python",
"mimetype": "text/x-python",
"version": "3.5.2",
"pygments_lexer": "ipython3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment