hawc_hal.root_handler   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 8
dl 0
loc 15
rs 10
c 0
b 0
f 0
1
# This module handle the importing of ROOT
0 ignored issues
show
Coding Style introduced by
This module should have a docstring.

The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:

class SomeClass:
    def some_method(self):
        """Do x and return foo."""

If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.

Loading history...
2
# only use in methods that actually need ROOT
3
4
import ROOT
0 ignored issues
show
introduced by
Unable to import 'ROOT'
Loading history...
5
ROOT.PyConfig.IgnoreCommandLineOptions = True
6
7
from ROOT import TEntryList
0 ignored issues
show
introduced by
Unable to import 'ROOT'
Loading history...
introduced by
Import "from ROOT import TEntryList" should be placed at the top of the module
Loading history...
Unused Code introduced by
Unused TEntryList imported from ROOT
Loading history...
8
9
from threeML.io.cern_root_utils.io_utils import get_list_of_keys, open_ROOT_file
0 ignored issues
show
introduced by
Import "from threeML.io.cern_root_utils.io_utils import get_list_of_keys, open_ROOT_file" should be placed at the top of the module
Loading history...
Unused Code introduced by
Unused get_list_of_keys imported from threeML.io.cern_root_utils.io_utils
Loading history...
Unused Code introduced by
Unused open_ROOT_file imported from threeML.io.cern_root_utils.io_utils
Loading history...
introduced by
third party import "from threeML.io.cern_root_utils.io_utils import get_list_of_keys, open_ROOT_file" should be placed before "import ROOT"
Loading history...
10
from threeML.io.cern_root_utils.tobject_to_numpy import tree_to_ndarray
0 ignored issues
show
introduced by
Import "from threeML.io.cern_root_utils.tobject_to_numpy import tree_to_ndarray" should be placed at the top of the module
Loading history...
Unused Code introduced by
Unused tree_to_ndarray imported from threeML.io.cern_root_utils.tobject_to_numpy
Loading history...
introduced by
third party import "from threeML.io.cern_root_utils.tobject_to_numpy import tree_to_ndarray" should be placed before "import ROOT"
Loading history...
11
12
ROOT.SetMemoryPolicy(ROOT.kMemoryStrict)
13
14
import root_numpy
0 ignored issues
show
introduced by
Unable to import 'root_numpy'
Loading history...
introduced by
Import "import root_numpy" should be placed at the top of the module
Loading history...
Unused Code introduced by
The import root_numpy seems to be unused.
Loading history...
15