Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
from __future__ import division, print_function | |
""" | |
This script generates a file to use for building authorea papers, and then runs | |
latex on them. | |
Requires python >= 2.6 (3.x should work, too) | |
The key assumptions are: |
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 __future__ import division, print_function | |
import abc | |
import numpy as np | |
from matplotlib import pyplot as plt | |
from astropy import units as u | |
from astropy.modeling import Fittable2DModel, Parameter, fitting | |
from astropy.modeling import format_input as _format_input |
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 __future__ import print_function | |
""" | |
This script will use PyPI to identify a release of a package, and then search | |
through github to get a count of all of the issues and PRs closed/merged since | |
that release. | |
Usage: | |
python gh_issuereport.py astropy/astropy astropy/0.3 |
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
Freezing version number to astropy/version.py | |
running build | |
running build_py | |
creating build | |
creating build/lib.macosx-10.9-x86_64-2.7 | |
creating build/lib.macosx-10.9-x86_64-2.7/astropy | |
copying astropy/__init__.py -> build/lib.macosx-10.9-x86_64-2.7/astropy | |
copying astropy/conftest.py -> build/lib.macosx-10.9-x86_64-2.7/astropy | |
copying astropy/logger.py -> build/lib.macosx-10.9-x86_64-2.7/astropy | |
copying astropy/setup_helpers.py -> build/lib.macosx-10.9-x86_64-2.7/astropy |
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.
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
# coding: utf-8 | |
from __future__ import print_function, division | |
""" | |
A python function to grab the RC3 catalog from vizier and parse it. | |
Requires `astropy <http://www.astropy.org>`_ version >= 0.3 | |
This does not include the actual rc3 data file. The python `load_rc3` function | |
will get the data file automatically from |
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
%%This is often best used in a latex file in two-column mode. To do that, do: | |
%% | |
%%\usepackage{multicol} % before \begin{document} | |
%% ... document ... | |
%%\begin{multicols}{2} | |
%%\bibliography{filename}{} | |
%%\bibliographystyle{apj_short_prop} | |
%%\end{multicols} | |
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
#This is a mostly literal port of x_keckhelio.pro from XIDL (http://www.ucolick.org/~xavier/IDL/) | |
from __future__ import division | |
from math import pi | |
from numpy import cos, sin | |
import numpy as np | |
def x_keckhelio(ra, dec, epoch=2000.0, jd=None, tai=None, | |
longitude=None, latitude=None, altitude=None, obs='keck'): | |
""" |