Belle II Software development
Basf2Calculation Class Reference
Inheritance diagram for Basf2Calculation:
Calculation

Public Member Functions

def __init__ (self)
 
def show_path (self, index=None)
 
def get_modules (self, index=None)
 
def show_dependencies (self, index=None)
 

Protected Attributes

 _calculation_process_type
 Override the calculation process type with the basf2 one.
 

Detailed Description

Overloaded class with more functionality which is ipython_handler_basf2 specific:
  * Access the path and the module
  * Create basf2 calculations
  * Use the basf2 widgets

Definition at line 14 of file calculation.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Create a new basf2 calculation mostly overloading the standard calculation.

Reimplemented from Calculation.

Definition at line 22 of file calculation.py.

22 def __init__(self):
23 """Create a new basf2 calculation mostly overloading the standard calculation."""
24 super().__init__()
25
26
27 self._calculation_process_type = Basf2CalculationProcess
28

Member Function Documentation

◆ get_modules()

def get_modules (   self,
  index = None 
)
Return the modules in the given path.

Definition at line 41 of file calculation.py.

41 def get_modules(self, index=None):
42 """
43 Return the modules in the given path.
44 """
45 return self.map_on_processes(lambda process: process.path.modules() if process.path is not None else None, index)
46

◆ show_dependencies()

def show_dependencies (   self,
  index = None 
)
Show the dependencies among the data store entries.

Definition at line 47 of file calculation.py.

47 def show_dependencies(self, index=None):
48 """
49 Show the dependencies among the data store entries.
50 """
51 def f(process):
52 dependency_JSON = process.get("ipython.dependencies")
53 if dependency_JSON:
54 return viewer.DependencyViewer(dependency_JSON)
55 else:
56 return None
57
58 self.create_widgets_for_all_processes(f, index)

◆ show_path()

def show_path (   self,
  index = None 
)
Show the underlaying ipython_handler_basf2 path in an interactive way

Definition at line 29 of file calculation.py.

29 def show_path(self, index=None):
30 """
31 Show the underlaying ipython_handler_basf2 path in an interactive way
32 """
33 def f(process):
34 if process.path is not None:
35 return viewer.PathViewer(process.path)
36 else:
37 return None
38
39 self.create_widgets_for_all_processes(f, index)
40

Member Data Documentation

◆ _calculation_process_type

_calculation_process_type
protected

Override the calculation process type with the basf2 one.

Definition at line 27 of file calculation.py.


The documentation for this class was generated from the following file: