Skip to content

Instantly share code, notes, and snippets.

View cdeil's full-sized avatar

Christoph Deil cdeil

View GitHub Profile
eduroam-3-163:sherpa deil$ $PYTHON setup.py build
running build
got version from VCS {'version': '4.7+524.g2d013d1', 'full': '2d013d129a37375b9866ea5efefd40b325a52ba1'}
warning: sherpa_config: built configure string['./configure', '--prefix=/Users/deil/code/sherpa/build', '--with-pic', '--enable-standalone', '--disable-maintainer-mode', '--enable-stuberrorlib', '--disable-shared', '--enable-shared=libgrp,stklib', '--enable-fftw', '--enable-region', '--enable-group', '--enable-stk', '--enable-wcs']
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
______________________________________________________________ TestMaps.test_make_derived_maps _______________________________________________________________
self = <gammapy.background.tests.test_maps.TestMaps testMethod=test_make_derived_maps>
def setUp(self):
"""Make an example file containing a Maps object."""
# Parameters
shape = (300, 300)
background = 1
pos1 = (100, 100)
_________________________________________________________________________ test_image _________________________________________________________________________
@pytest.mark.skipif('not HAS_SCIPY')
def test_image():
# Test dataset parameters
x_size_kernel, y_size_kernel = (11, 11)
x_size_image, y_size_image = (31, 31)
total_excess = 100
total_background = 1000
ones = np.ones((x_size_image, y_size_image))
==================================================================== test session starts =====================================================================
platform darwin -- Python 2.7.6 -- pytest-2.5.1
Running tests with Astropy version 0.4.dev7301.
Running tests in photutils /Users/deil/code/photutils/docs.
Platform: Darwin-13.0.0-x86_64-i386-64bit
Executable: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
class GPSPlot(object):
"""Handles looping over the slices.
You use this class by subclassing from it
and implementing the following two hooks:
#- init() -- file loading, option setting <- That's the way it should work!!!
- main() -- main plotting
- post() -- postprocessing
"""
def __init__(self, plot_slices=None, nslices=4):
/Users/deil/code/gammapy/docs/api/gammapy.astro.population.spatial.LogSpiral.rst:7: WARNING: py:class reference target not found: object
/Users/deil/code/gammapy/docs/api/gammapy.astro.source.pulsar.Pulsar.rst:7: WARNING: py:class reference target not found: object
/Users/deil/code/gammapy/docs/api/gammapy.astro.source.pwn.PWN.rst:7: WARNING: py:class reference target not found: object
/Users/deil/code/gammapy/docs/api/gammapy.astro.source.snr.SNR.rst:7: WARNING: py:class reference target not found: object
/Users/deil/code/gammapy/docs/api/gammapy.background.maps.Maps.rst:7: WARNING: py:class reference target not found: astropy.io.fits.hdu.hdulist.HDUList
/Users/deil/code/gammapy/docs/api/gammapy.background.reflected.ReflectedBgMaker.rst:7: WARNING: py:class reference target not found: object
/Users/deil/code/gammapy/docs/api/gammapy.background.reflected.ReflectedRegionMaker.rst:7: WARNING: py:class reference target not found: object
/Users/deil/code/gammapy/docs/api/gammapy.background.ring.RingBgMaker.rst:7:
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -pipe -Os -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -Icextern/cfitsio -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cextern/cfitsio/imcompress.c -o build/temp.macosx-10.9-x86_64-2.7/cextern/cfitsio/imcompress.o -Wno-unused-variable -Wno-parentheses -Wno-uninitialized -Wno-format -Wno-strict-prototypes -Wno-unused -Wno-comments -Wno-switch -Wno-declaration-after-statement
cextern/cfitsio/imcompress.c:563:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cextern/cfitsio/imcompress.c:584:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cextern/cfitsio/imcompress.c:7253:58: warning: comparison of constant -2147483646 with expression of type 'unsigned char' is always false
[-Wtautological-constant-out-of-range-compare]
if (dither_m
$ git status
On branch v0.3.x
Your branch is up-to-date with 'origin/v0.3.x'.
You have unmerged paths.
(fix conflicts and run "git commit")
Changes to be committed:
new file: .mailmap
{
"metadata": {
"name": "",
"signature": "sha256:d8744dae97c9a36724599c528b9d822cfe5123464e3a0337e686961ddc67b733"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [