Skip to content

Instantly share code, notes, and snippets.

View bsipocz's full-sized avatar

Brigitta Sipőcz bsipocz

View GitHub Profile
@bsipocz
bsipocz / gist:c298d2f7fb1c88d057a4
Created June 9, 2014 12:45
Failing tests in test_findstars.py
(astropy-dev)bsipocz@kecske:~/munka/devel/photutils$ python setup.py test --coverage
running test
running build
running build_py
copying photutils/utils/sampling.c -> build/lib.macosx-10.6-x86_64-2.7/photutils/utils
running build_ext
skipping 'photutils/circular_overlap.c' Cython extension (up-to-date)
skipping 'photutils/elliptical_exact.c' Cython extension (up-to-date)
skipping 'photutils/utils/sampling.c' Cython extension (up-to-date)
WARNING: ConfigurationDefaultMissingWarning: Could not determine version of package photutils Cannot install default profile. If you are importing from source, this is expected. [photutils._astropy_init]
@bsipocz
bsipocz / 0.4rc1_test
Created July 2, 2014 19:50
astropy v0.4rc1 test
=============================================================== test session starts ================================================================
platform darwin -- Python 2.7.5 -- pytest-2.5.1
Running tests with Astropy version 0.4rc1.
Running tests in /sw/lib/python2.7/site-packages/astropy.
Platform: Darwin-10.8.0-x86_64-i386-32bit
Executable: /sw/bin/python2.7
@bsipocz
bsipocz / gist:5d7818aad64c5da4324d
Created July 2, 2014 23:50
astropy v0.4rc1 test2
===================================================================================== test session starts ======================================================================================
platform darwin -- Python 2.7.7 -- pytest-2.5.1
Running tests with Astropy version 0.4rc1.
Running tests in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy.
Platform: Darwin-11.4.2-x86_64-i386-64bit
Executable: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
@bsipocz
bsipocz / benchmark_after_PR107
Created August 4, 2014 20:02
Benchmark results for 5 runs after each of PR118, PR108 and PR107. The slowdown came in PR108.
===============================================================================
astropy version: 0.4
photutils version: 0.0.dev659
numpy version: 1.6.2
===============================================================================
===============================================================================
Small data, single small aperture (milliseconds)
subpixels =
1
5
@bsipocz
bsipocz / test_SkyCircularAperture.py
Last active August 29, 2015 14:11
Test showing that non fixed scale results different photometric flux depending on the number of positions
from astropy.io import fits
from astropy.wcs import WCS
import numpy as np
import astropy.units as u
from photutils import SkyCircularAperture, aperture_photometry
from photutils.extern.wcs_utils import pixel_to_skycoord
image_shape = (100, 200)
header = WCS({'CTYPE1': 'RA---TAN',
@bsipocz
bsipocz / gist:39381d726a12e764bc37
Last active August 29, 2015 14:13
test_highlevel_api_remote fail
============================= test session starts ==============================
platform linux2 -- Python 2.7.8 -- pytest-2.5.1
Running tests with Astropy version 1.0.dev11448.
Running tests in astropy /home/bsipocz/devel/astropy/docs.
Platform: Linux-2.6.18-400.1.1.el5-x86_64-with-redhat-5.11-Tikanga
Executable: /data/apm36_a/wts/pipeline64/bsipocz/bin/python
@bsipocz
bsipocz / gist:38a4d6bf5041d837a2f8
Created January 28, 2015 15:54
astropy fails on 32bit
=============================================== test session starts ================================================
platform linux2 -- Python 2.7.3 -- pytest-2.5.1
Running tests with Astropy version 1.1.dev11768.
Running tests in astropy /home/bsipocz/devel/astropy/docs.
Platform: Linux-3.2.0-4-686-pae-i686-with-debian-7.8
Executable: /usr/bin/python
@bsipocz
bsipocz / gist:94b44e6f58c1419b8e33
Created January 30, 2015 17:45
photutils test on 32bit with numpy 1.8.2 and scipy 0.12.1
======================================================================= test session starts =======================================================================
platform linux2 -- Python 2.7.3 -- pytest-2.5.1 -- /usr/bin/python
Running tests with Astropy version 1.1.dev11780.
Running tests in photutils.
Platform: Linux-3.2.0-4-686-pae-i686-with-debian-7.8
Executable: /usr/bin/python
Python 2.7.8 (default, Nov 18 2014, 11:18:05)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-55)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import astropy
>>> astropy.test()
============================= test session starts ==============================
platform linux2 -- Python 2.7.8 -- pytest-2.5.1
Running tests with Astropy version 1.1.dev11768.
Running tests in /home/bsipocz/devel/astropy/astropy.
@bsipocz
bsipocz / gist:38fed6fe8f20e5f19c07
Created February 12, 2015 22:16
rc2 on debian 7.8 i686
>>> import astropy
astropy.__version__
WARNING: ConfigurationChangedWarning: The configuration options in astropy 1.0rc2 may have changed, your configuration file was not updated in order to preserve local changes. A new configuration template has been saved to '/home/bsipocz/.astropy/config/astropy.1.0rc2.cfg'. [astropy.config.configuration]
>>> astropy.__version__
u'1.0rc2'
>>> astropy.test()
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- pytest-2.5.1
Running tests with Astropy version 1.0rc2.