Belle II Software development
Comparison Class Reference
Inheritance diagram for Comparison:
JsonBase

Public Member Functions

def __init__ (self, revisions=None, packages=None)
 

Public Attributes

 revisions
 the list of revisions used in this comparison
 
 packages
 the list of packages looked at in this comparison
 
 label
 the unique label of this comparison
 

Detailed Description

Contains information and plots generated for comparisons
between revisions

Definition at line 572 of file json_objects.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  revisions = None,
  packages = None 
)
Create a new ComparisonRevision object and fill all members

Definition at line 579 of file json_objects.py.

579 def __init__(self, revisions=None, packages=None):
580 """
581 Create a new ComparisonRevision object and fill all members
582 """
583
584 if not revisions:
585 revisions = []
586 if not packages:
587 packages = []
588
589
590 self.revisions = revisions
591
592 self.packages = packages
593 sorted_revs = sorted(revisions, key=lambda x: x.label)
594
595 self.label = functools.reduce(
596 lambda x, y: x + "_" + y.label, sorted_revs, ""
597 )[1:]
598
599
600# ==============================================================================
601# Functions
602# ==============================================================================
603
604

Member Data Documentation

◆ label

label

the unique label of this comparison

Definition at line 595 of file json_objects.py.

◆ packages

packages

the list of packages looked at in this comparison

Definition at line 592 of file json_objects.py.

◆ revisions

revisions

the list of revisions used in this comparison

Definition at line 590 of file json_objects.py.


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