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
christoph-deils-macbook:tmp deil$ python2.6 -c 'import pymc; pymc.test()' | |
Running unit tests for pymc.tests | |
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/pkgutil.py:186: ImportWarning: Not importing directory '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/virtualenvwrapper': missing __init__.py | |
file, filename, etc = imp.find_module(subname, path) | |
NumPy version 1.6.2 | |
NumPy is installed in /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy | |
Python version 2.6.8 (unknown, Apr 19 2012, 09:26:08) [GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.45)] | |
nose version 1.1.2 | |
Plotting disabled | |
...S.S.....F.F..SS...........S.....S......S..............S....S.......S........S.....S..S......../opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pymc/distributions.py:2090: RuntimeWarning: divide by zero encountered in log |
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
""" | |
Example of how to fit linear and nonlinear models to data with ROOT [1], | |
the most widely used data analysis / fitting package for physicists. | |
It would be great if statsmodels [2] could also fit non-linear models | |
and if the documentation could be improved to be understandable by physicists. | |
[1] http://root.cern.ch | |
[2] http://statsmodels.sourceforge.net | |
""" |
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
"""Plot an allsky image with aplpy""" | |
import matplotlib | |
matplotlib.use('Agg') | |
import aplpy | |
f = aplpy.FITSFigure('allsky.fits') | |
print('Plotting ...') | |
f.set_theme('publication') |
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
(astro_python)lfs1> python runtests.py | |
================================================================== test session starts =================================================================== | |
platform linux2 -- Python 2.6.6 -- pytest-2.2.0 | |
collected 0 items / 13 errors | |
========================================================================= ERRORS ========================================================================= | |
_______________________________________________________ ERROR collecting tests/test_axis_labels.py _______________________________________________________ | |
tests/test_axis_labels.py:7: in <module> | |
> from aplpy import FITSFigure | |
aplpy/__init__.py:1: in <module> |
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
(astro_python)lfs1> python allsky.py | |
/lfs/l1/hess/users/deil/bin/HESSSurveyBin/astro_python/lib/python2.6/site-packages/astropy-0.2.dev1517-py2.6-linux-x86_64.egg/pywcs/__init__.py:30: DeprecationWarning: pywcs is deprecated. Use astropy.wcs instead. | |
DeprecationWarning) | |
WARNING: hdu=0 does not contain any data, using hdu=1 instead | |
ERROR: Exception: An error occured while parsing the WCS information [aplpy.aplpy] | |
ERROR: Exception: An error occured while parsing the WCS information | |
Traceback (most recent call last): | |
File "allsky.py", line 7, in <module> | |
f = aplpy.FITSFigure('allsky.fits') | |
File "<string>", line 2, in __init__ |
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
"""Coordinate transformation methods using PyEphem | |
http://rhodesmill.org/pyephem/ | |
""" | |
import numpy as np | |
import ephem | |
def transform(in_position, in_system, out_system, observer=None): | |
"""Simple coordinate transforms between commonly used coordinate systems. |
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
christoph-deils-macbook:sherpa deil$ python setup.py build | |
running build | |
running config_cc | |
unifing config_cc, config, build_clib, build_ext, build commands --compiler options | |
running config_fc | |
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options | |
running build_src | |
build_src | |
building library "sherpa" sources | |
building extension "sherpa.estmethods._est_funcs" sources |
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
ip0x0872:~ deil$ nosetests IPython | |
.............................S...........S.................................F........................................................................................................................................................................................................................................................................................................................................................................................................................E.....................................E.......E.....................................................................................................................................................................................S.............E......................................................S.................................................SS...S..............S............S..S......................................................................................................................... |
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
$ cd rootpy/rootpy/io/tests/ | |
$ python test_file.py | |
.E | |
====================================================================== | |
ERROR: __main__.test_file | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py", line 197, in runTest | |
self.test(*self.arg) | |
File "test_file.py", line 20, in test_file |