Belle II Software development
ComparisonRevision Class Reference
Inheritance diagram for ComparisonRevision:
Revision JsonBase

Public Member Functions

 __init__ (self, label, git_hash=None, creation_date=None, color=None)
 

Public Attributes

 color = color
 the color which was used for this revision in the comparison plots
 
 label = label
 label (or tag) used to display this revision
 
 creation_date = creation_date
 date when the validation output of this revision was created, as datetime object
 
 creation_timezone = creation_timezone
 timezone used by the creation date
 
 git_hash = git_hash
 The git commit hash which has the HEAD while the validation scripts were executed.
 
bool most_recent = False
 is this the most recent revision in the list this revision is contained ?
 
list packages = [] if (packages is None) else packages
 list of packages contained in this revision
 

Detailed Description

Revision information enriched by the information gained during
a comparison.

Definition at line 553 of file json_objects.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
label,
git_hash = None,
creation_date = None,
color = None )
Create a new ComparisonRevision object and fill all members

Definition at line 560 of file json_objects.py.

560 def __init__(self, label, git_hash=None, creation_date=None, color=None):
561 """
562 Create a new ComparisonRevision object and fill all members
563 """
564
565 # todo: creation_date
566 super().__init__(label, git_hash=git_hash, creation_date=None)
567
569 self.color = color
570
571

Member Data Documentation

◆ color

color = color

the color which was used for this revision in the comparison plots

Definition at line 569 of file json_objects.py.

◆ creation_date

creation_date = creation_date
inherited

date when the validation output of this revision was created, as datetime object

Definition at line 57 of file json_objects.py.

◆ creation_timezone

creation_timezone = creation_timezone
inherited

timezone used by the creation date

Definition at line 60 of file json_objects.py.

◆ git_hash

git_hash = git_hash
inherited

The git commit hash which has the HEAD while the validation scripts were executed.

Definition at line 64 of file json_objects.py.

◆ label

label = label
inherited

label (or tag) used to display this revision

Definition at line 53 of file json_objects.py.

◆ most_recent

bool most_recent = False
inherited

is this the most recent revision in the list this revision is contained ?

Definition at line 68 of file json_objects.py.

◆ packages

list packages = [] if (packages is None) else packages
inherited

list of packages contained in this revision

Definition at line 71 of file json_objects.py.


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