Skip to content

Commit

Permalink
Restructured TS map computation
Browse files Browse the repository at this point in the history
  • Loading branch information
adonath committed Dec 10, 2014
1 parent 27f3c43 commit 66f2869
Show file tree
Hide file tree
Showing 14 changed files with 1,272 additions and 271 deletions.
15 changes: 15 additions & 0 deletions docs/development/index.rst
Expand Up @@ -58,6 +58,21 @@ Here's some issues where this was discussed:
* https://github.com/radio-astro-tools/spectral-cube/issues/110
* https://github.com/astropy/astropy/pull/2855#issuecomment-52610106


.. _development-result_object
Functions returning several values
----------------------------------

Functions that return more than a single value shouldn't return a list
or dictionary of values but rather a Python Bunch result object. A Bunch
is similar to a dict, except that it allows attribute access to the result
values. The approach is the same as e.g. the use of `~scipy.optimize.OptimizeResult`.
An example of how Bunches are used in gammapy is given by the `~gammapy.detect.TSMapResult`
class.



.. _development-python2and3:

Python 2 and 3 support
Expand Down
2 changes: 1 addition & 1 deletion gammapy/detect/__init__.py
Expand Up @@ -5,4 +5,4 @@
from .iterfind import *
from .matched_filter import *
from .sex import *
from .test_statistic import *
from .test_statistics import *
131 changes: 0 additions & 131 deletions gammapy/detect/test_statistic.py

This file was deleted.

0 comments on commit 66f2869

Please sign in to comment.