This file contains hidden or 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
| { | |
| "type": "computer_program", | |
| "id": "https://doi.org/10.5281/zenodo.557087", | |
| "categories": [ | |
| "python", | |
| "library", | |
| "mice", | |
| "behaviour", | |
| "analysis", | |
| "intellicage" |
This file contains hidden or 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
| # xerr | |
| xerrx = [(i, j) for i, j in zip(x - xerr, x + xerr)] | |
| xerry = [(i, i) for i in y] | |
| bp.multi_line(xerrx, xerry, alpha=0.5) | |
| # yerr | |
| yerrx = [(i, i) for i in x] | |
| yerry = [(i, j) for i, j in zip(y - yerr, y + yerr)] | |
| bp.multi_line(yerrx, yerry, alpha=0.5) |
This file contains hidden or 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
| # brought to you by [email protected] | |
| # version 0.1; 2015-12-08T17:17:00-0500 | |
| from astropy.table import Table | |
| from astropy.coordinates import Angle, SkyCoord | |
| import astropy.units as u | |
| # parse some ApJ/AJ MRT file. it's really that easy. | |
| data = Table.read("datafile4.txt", format="ascii.cds") |
This file contains hidden or 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
| bash-3.2$ qlmanage -m | grep zip | |
| org.7-zip.arj-archive -> /Library/QuickLook/BetterZipQL.qlgenerator (1.6) | |
| public.bzip2-archive -> /Library/QuickLook/BetterZipQL.qlgenerator (1.6) | |
| public.archive.bzip2 -> /Library/QuickLook/BetterZipQL.qlgenerator (1.6) | |
| public.zip-archive -> /Library/QuickLook/BetterZipQL.qlgenerator (1.6) | |
| org.7-zip.7-zip-archive -> /Library/QuickLook/BetterZipQL.qlgenerator (1.6) | |
| org.gnu.gnu-zip-tar-archive -> /Library/QuickLook/BetterZipQL.qlgenerator (1.6) | |
| org.7-zip.lha-archive -> /Library/QuickLook/BetterZipQL.qlgenerator (1.6) | |
| org.bzip.bzip2-tar-archive -> /Library/QuickLook/BetterZipQL.qlgenerator (1.6) | |
| org.gnu.gnu-zip-archive -> /Library/QuickLook/QLFits3.qlgenerator (3.0.3) |
This file contains hidden or 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 | |
| """ | |
| This script takes in the URL to the JSON version of an ADS private library, and outputs a bibtex file suitable for importing into ORCiD | |
| """ | |
| import json | |
| import urllib2 | |
This file contains hidden or 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
| SIMPLE = T / Standard FITS file | |
| BITPIX = 8 / ASCII or bytes array | |
| NAXIS = 0 / Minimal header | |
| EXTEND = T / There may be FITS ext | |
| WCSAXES = 2 / no comment | |
| CTYPE1 = 'RA---TAN-SIP' / TAN (gnomic) projection + SIP distortions | |
| CTYPE2 = 'DEC--TAN-SIP' / TAN (gnomic) projection + SIP distortions | |
| EQUINOX = 2000.0 / Equatorial coordinates definition (yr) | |
| LONPOLE = 180.0 / no comment | |
| LATPOLE = 0.0 / no comment |
This file contains hidden or 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
| (test_astropy)<01:43:39> aamn@lynds:astropy-0.2.4 > python setup.py build > /dev/null | |
| wcsbth.c:19947:16: warning: function 'input' is not needed and will not be emitted | |
| [-Wunneeded-internal-declaration] | |
| static int input (void) | |
| ^ | |
| 1 warning generated. | |
| wcspih.c:10041:16: warning: function 'input' is not needed and will not be emitted | |
| [-Wunneeded-internal-declaration] | |
| static int input (void) | |
| ^ |
This file contains hidden or 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
| healpy-1.6.2 > python setup.py --verbose build | |
| pkg-config is not installed, falling back to pykg-config | |
| running build | |
| running build_py | |
| not copying healpy/__init__.py (output up-to-date) | |
| not copying healpy/pixelfunc.py (output up-to-date) | |
| not copying healpy/sphtfunc.py (output up-to-date) | |
| not copying healpy/visufunc.py (output up-to-date) | |
| not copying healpy/fitsfunc.py (output up-to-date) | |
| not copying healpy/projector.py (output up-to-date) |
This file contains hidden or 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
| # '/Users/aamn/Projects/VO_Projects/Python/Test_vaods9' | |
| import os | |
| import vao_intercom | |
| ds9c = vao_intercom.ds9Com() | |
| # find out where ds9 thinks it is | |
| ds9c.get('cd') |
This file contains hidden or 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
| # src: https://gist.github.com/906716/82e170c4952a75fde3fdc1e5c5f008979e1a8364 | |
| import sampy | |
| import urlparse | |
| mtype_lu = {} | |
| mtype_lu['votable'] = {'mtype':'table.load.votable', | |
| 'params':['name','url','table-id']} | |
| mtype_lu['fits_table'] = {'mtype':'table.fits.votable' , | |
| 'params':['name','url','table-id']} |