__init__.py
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"""cscripts --- Python scripts from the ctools package.
http://cta.irap.omp.eu/ctools/
"""
# List all scripts in this module
__all__ = [
"cscaldb",
"cshessobs",
"csinfo",
"cslightcrv",
"csobsdef",
"cspull",
"csresmap",
"cssens",
"csspec",
"cstsdist",
"obsutils",
"test",
]
# Import
from .cscaldb import cscaldb
from .cshessobs import cshessobs
from .csinfo import csinfo
from .cslightcrv import cslightcrv
from .csobsdef import csobsdef
from .cspull import cspull
from .csresmap import csresmap
from .cssens import cssens
from .csspec import csspec
from .cstsdist import cstsdist
from . import obsutils
def test(verbosity=2):
"""Run ctools tests.
"""
import unittest
from .tests.test_unbinned import TestUnbinnedAnalysis
test_suite = unittest.TestSuite()
# Test cases must be listed manually here ...
# we currently don't use unittest for test collection
test_suite.addTest(unittest.makeSuite(TestUnbinnedAnalysis))
test_runner = unittest.TextTestRunner(verbosity=verbosity)
test_runner.run(test_suite)