Belle II Software
release-05-02-19
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
calculation.py
1
from
hep_ipython_tools.calculation
import
Calculation
2
3
from
hep_ipython_tools.ipython_handler_basf2.calculation_process
import
Basf2CalculationProcess
4
from
hep_ipython_tools.ipython_handler_basf2
import
viewer
5
6
7
class
Basf2Calculation
(
Calculation
):
8
"""
9
Overloaded class with more functionality which is ipython_handler_basf2 specific:
10
* Access the path and the module
11
* Create Basf2 calculations
12
* Use the Basf2 widgets
13
"""
14
15
def
__init__
(self):
16
"""Create a new basf2 calculation mostly overloading the standard calculation."""
17
super().
__init__
()
18
19
20
self.
_calculation_process_type
= Basf2CalculationProcess
21
22
def
show_path
(self, index=None):
23
"""
24
Show the underlaying ipython_handler_basf2 path in an interactive way
25
"""
26
def
f(process):
27
if
process.path
is
not
None
:
28
return
viewer.PathViewer
(process.path)
29
else
:
30
return
None
31
32
self.
create_widgets_for_all_processes
(f, index)
33
34
def
get_modules
(self, index=None):
35
"""
36
Return the modules in the given path.
37
"""
38
return
self.
map_on_processes
(
lambda
process: process.path.modules()
if
process.path
is
not
None
else
None
, index)
39
40
def
show_dependencies
(self, index=None):
41
"""
42
Show the dependencies among the data store entries.
43
"""
44
def
f(process):
45
dependency_JSON = process.get(
"ipython.dependencies"
)
46
if
dependency_JSON:
47
return
viewer.DependencyViewer
(dependency_JSON)
48
else
:
49
return
None
50
51
self.
create_widgets_for_all_processes
(f, index)
hep_ipython_tools.calculation.Calculation.create_widgets_for_all_processes
def create_widgets_for_all_processes(self, widget_function, index=None)
Definition:
calculation.py:295
hep_ipython_tools.ipython_handler_basf2.viewer.DependencyViewer
Definition:
viewer.py:171
hep_ipython_tools.ipython_handler_basf2.calculation.Basf2Calculation
Definition:
calculation.py:7
hep_ipython_tools.ipython_handler_basf2.calculation.Basf2Calculation.__init__
def __init__(self)
Definition:
calculation.py:15
hep_ipython_tools.ipython_handler_basf2.calculation.Basf2Calculation.get_modules
def get_modules(self, index=None)
Definition:
calculation.py:34
hep_ipython_tools.ipython_handler_basf2.calculation.Basf2Calculation.show_path
def show_path(self, index=None)
Definition:
calculation.py:22
hep_ipython_tools.ipython_handler_basf2.calculation.Basf2Calculation.show_dependencies
def show_dependencies(self, index=None)
Definition:
calculation.py:40
hep_ipython_tools.calculation.Calculation
Definition:
calculation.py:16
hep_ipython_tools.calculation
Definition:
calculation.py:1
hep_ipython_tools.ipython_handler_basf2.viewer.PathViewer
Definition:
viewer.py:32
hep_ipython_tools.calculation.Calculation._calculation_process_type
_calculation_process_type
The calculation process type to use.
Definition:
calculation.py:33
hep_ipython_tools.ipython_handler_basf2.calculation_process
Definition:
calculation_process.py:1
hep_ipython_tools.calculation.Calculation.map_on_processes
def map_on_processes(self, map_function, index)
Definition:
calculation.py:204
hep_ipython_tools.ipython_handler_basf2
Definition:
__init__.py:1
framework
scripts
hep_ipython_tools
ipython_handler_basf2
calculation.py
Generated on Tue Jan 4 2022 02:57:17 for Belle II Software by
1.8.17