Skip to content

Instantly share code, notes, and snippets.

View keflavich's full-sized avatar

Adam Ginsburg keflavich

View GitHub Profile
remotes/jwoillez/issue287$ python setup.py test --remote-data
running test
running build
running build_py
running egg_info
writing requirements to astroquery.egg-info/requires.txt
writing astroquery.egg-info/PKG-INFO
writing top-level names to astroquery.egg-info/top_level.txt
writing dependency_links to astroquery.egg-info/dependency_links.txt
reading manifest file 'astroquery.egg-info/SOURCES.txt'
import numpy as np
import warnings
r2deg = 180/np.pi
"""
.. TODO::
When any section length is zero, that means the following values are to be
ignored. No warning is needed.
"""
def read_lmv(fn):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
$ python setup.py test
Freezing version number to astroquery/version.py
running test
running build
running build_py
copying astroquery/query.py -> build/lib.macosx-10.6-intel-2.7/astroquery
copying astroquery/version.py -> build/lib.macosx-10.6-intel-2.7/astroquery
copying astroquery/alfalfa/core.py -> build/lib.macosx-10.6-intel-2.7/astroquery/alfalfa
copying astroquery/besancon/core.py -> build/lib.macosx-10.6-intel-2.7/astroquery/besancon
copying astroquery/eso/core.py -> build/lib.macosx-10.6-intel-2.7/astroquery/eso
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 has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>ExampleAPEXMappingReduction</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import json
def strip_stream(filename):
jay = json.load(open(filename))
for cell in jay['worksheets'][0]['cells']:
if 'outputs' in cell:
cell['outputs'] = [x for x in cell['outputs']
if not (x['output_type'] == 'stream'
and '\r' in x['text'])]
with open(filename,'w') as outf:
import sys
import yt
import spectral_cube
from spectral_cube import SpectralCube
import numpy as np
import pylab as pl
from astropy.utils.console import ProgressBar
import paths
import subprocess
from itertools import izip