Belle II Software development
ComparisonPackage Class Reference
Inheritance diagram for ComparisonPackage:
Package JsonBase

Public Member Functions

def __init__ (self, name, plotfiles=None, scriptfiles=None, ntuplefiles=None)
 

Public Attributes

 comparison_error
 the number of failed comparisons in this package
 
 comparison_error_shifter
 the number of failed comparisons of shifter plots in this package
 
 comparison_warning
 the number of comparisons which resulted in a warning
 
 comparison_warning_shifter
 the number of comparisons of shifter plots which resulted in a warning
 

Detailed Description

Information about a Package which was used in a comparison operation

Definition at line 514 of file json_objects.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  name,
  plotfiles = None,
  scriptfiles = None,
  ntuplefiles = None 
)
Create a new ComparisonPackage object and fill all members

Reimplemented from Package.

Definition at line 520 of file json_objects.py.

522 ):
523 """
524 Create a new ComparisonPackage object and fill all members
525 """
526
527 if not plotfiles:
528 plotfiles = []
529 if not scriptfiles:
530 scriptfiles = []
531 if not ntuplefiles:
532 ntuplefiles = []
533
534 super().__init__(name, plotfiles=plotfiles, scriptfiles=scriptfiles)
535
536
537 self.comparison_error = sum([pf.comparison_error for pf in plotfiles])
538
539 self.comparison_error_shifter = sum(
540 [pf.comparison_error_shifter for pf in plotfiles]
541 )
542
543 self.comparison_warning = sum(
544 [pf.comparison_warning for pf in plotfiles]
545 )
546
548 self.comparison_warning_shifter = sum(
549 [pf.comparison_warning_shifter for pf in plotfiles]
550 )
551
552

Member Data Documentation

◆ comparison_error

comparison_error

the number of failed comparisons in this package

Definition at line 537 of file json_objects.py.

◆ comparison_error_shifter

comparison_error_shifter

the number of failed comparisons of shifter plots in this package

Definition at line 539 of file json_objects.py.

◆ comparison_warning

comparison_warning

the number of comparisons which resulted in a warning

Definition at line 543 of file json_objects.py.

◆ comparison_warning_shifter

comparison_warning_shifter

the number of comparisons of shifter plots which resulted in a warning

Definition at line 548 of file json_objects.py.


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