Passed
Push — master ( 573345...9597ff )
by Giacomo
06:15
created

hawc_hal.root_handler   A

Complexity

Total Complexity 0

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 7
dl 0
loc 14
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
6
from ROOT import TEntryList
0 ignored issues
show
introduced by
Unable to import 'ROOT'
Loading history...
Unused Code introduced by
Unused TEntryList imported from ROOT
Loading history...
7
8
from threeML.io.cern_root_utils.io_utils import get_list_of_keys, open_ROOT_file
0 ignored issues
show
introduced by
Unable to import 'threeML.io.cern_root_utils.io_utils'
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...
9
from threeML.io.cern_root_utils.tobject_to_numpy import tree_to_ndarray
0 ignored issues
show
introduced by
Unable to import 'threeML.io.cern_root_utils.tobject_to_numpy'
Loading history...
Unused Code introduced by
Unused tree_to_ndarray imported from threeML.io.cern_root_utils.tobject_to_numpy
Loading history...
10
11
ROOT.SetMemoryPolicy(ROOT.kMemoryStrict)
12
13
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...
14