Belle II Software development
QueueStereoQuadTreePlotter Class Reference
Inheritance diagram for QueueStereoQuadTreePlotter:
StereoQuadTreePlotter QuadTreePlotter

Public Member Functions

def __init__ (self, queue, label, *args, **kwargs)
 
def terminate (self)
 
def save_and_show_file (self)
 

Public Attributes

 queue
 The queue to handle.
 
 label
 The label for writing to the queue.
 
 file_list
 The list of created paths.
 

Detailed Description

A wrapper around the svg drawer in the tracking package that
writes its output files as a list to the queue

Definition at line 536 of file quadTreePlotter.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  queue,
  label,
args,
**  kwargs 
)
 The same as the base class, except:

Arguments
---------

queue: The queue to write to
label: The key name in the queue

Reimplemented from QuadTreePlotter.

Definition at line 543 of file quadTreePlotter.py.

543 def __init__(self, queue, label, *args, **kwargs):
544 """ The same as the base class, except:
545
546 Arguments
547 ---------
548
549 queue: The queue to write to
550 label: The key name in the queue
551 """
552
553 self.queue = queue
554
555 self.label = label
556 StereoQuadTreePlotter.__init__(self, *args, **kwargs)
557
558
559 self.file_list = []
560

Member Function Documentation

◆ save_and_show_file()

def save_and_show_file (   self)
 Overwrite the function to listen for every new filename 

Reimplemented from QuadTreePlotter.

Definition at line 566 of file quadTreePlotter.py.

566 def save_and_show_file(self):
567 """ Overwrite the function to listen for every new filename """
568
569 from datetime import datetime
570 from matplotlib import pyplot as plt
571
572 fileName = tempfile.gettempdir() + "/" + datetime.now().isoformat() + '.svg'
573 plt.savefig(fileName)
574 self.file_list.append(fileName)

◆ terminate()

def terminate (   self)
 Overwrite the terminate to put the list to the queue

Reimplemented from QuadTreePlotter.

Definition at line 561 of file quadTreePlotter.py.

561 def terminate(self):
562 """ Overwrite the terminate to put the list to the queue"""
563 StereoQuadTreePlotter.terminate(self)
564 self.queue.put(self.label, self.file_list)
565

Member Data Documentation

◆ file_list

file_list

The list of created paths.

Definition at line 559 of file quadTreePlotter.py.

◆ label

label

The label for writing to the queue.

Definition at line 555 of file quadTreePlotter.py.

◆ queue

queue

The queue to handle.

Definition at line 553 of file quadTreePlotter.py.


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