Created
July 22, 2014 11:46
-
-
Save cdeil/f8847ad217dcc8c2b8e1 to your computer and use it in GitHub Desktop.
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
=================================================================================== FAILURES =================================================================================== | |
___________________________________________________________________________ test_EffectiveAreaTable ____________________________________________________________________________ | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_EffectiveAreaTable(): | |
filename = get_pkg_data_filename('data/arf_info.txt') | |
info_str = open(filename, 'r').read() | |
arf = EffectiveAreaTable.from_fits(arf_fits_table()) | |
> assert arf.info() == info_str | |
gammapy/irf/tests/test_effective_area.py:40: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <gammapy.irf.effective_area.EffectiveAreaTable object at 0x117518f98>, energies = <Quantity [ 1., 10.] TeV> | |
def info(self, energies=Quantity([1, 10], 'TeV')): | |
""" | |
Print some ARF info. | |
Parameters | |
---------- | |
energies : `~astropy.units.Quantity` | |
Energies for which to print effective areas. | |
""" | |
> from psf_table import _quantity_stats_str | |
E ImportError: No module named 'psf_table' | |
gammapy/irf/effective_area.py:277: ImportError | |
------------------------------------------------------------------------------- Captured stderr -------------------------------------------------------------------------------- | |
WARNING: No safe energy thresholds found. Setting to default [gammapy.irf.effective_area] | |
WARNING: No safe energy thresholds found. Setting to default | |
______________________________________________________________________ test_EnergyDependentMultiGaussPSF _______________________________________________________________________ | |
@pytest.mark.skipif('not HAS_SCIPY') | |
def test_EnergyDependentMultiGaussPSF(): | |
from gammapy.datasets import psf_fits_table | |
filename = get_pkg_data_filename('data/psf_info.txt') | |
info_str = open(filename, 'r').read() | |
psf = EnergyDependentMultiGaussPSF.from_fits(psf_fits_table()) | |
> assert psf.info() == info_str | |
gammapy/irf/tests/test_psf_analytical.py:20: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <gammapy.irf.psf_analytical.EnergyDependentMultiGaussPSF object at 0x117600278>, fractions = [0.68, 0.95], energies = <Quantity [ 1., 10.] TeV> | |
thetas = <Quantity [ 0.] deg> | |
def info(self, fractions=[0.68, 0.95], energies=Quantity([1., 10.], 'TeV'), | |
thetas=Quantity([0.], 'deg')): | |
""" | |
Print PSF summary info. | |
The containment radius for given fraction, energies and thetas is | |
computed and printed on the command line. | |
Parameters | |
---------- | |
fractions : list | |
Containment fraction to compute containment radius for. | |
energies : `~astropy.units.Quantity` | |
Energies to compute containment radius for. | |
thetas : `~astropy.units.Quantity` | |
Thetas to compute containment radius for. | |
Returns | |
------- | |
ss : string | |
Formatted string containing the summary info. | |
""" | |
> from psf_table import _quantity_stats_str | |
E ImportError: No module named 'psf_table' | |
gammapy/irf/psf_analytical.py:322: ImportError | |
=================================================== 2 failed, 155 passed, 10 skipped, 20 xfailed, 3 xpassed in 23.18 seconds =================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment