Belle II Software  release-08-01-10
StatisticsVisitor Class Reference

Public Member Functions

def __init__ (self)
 
def read_rst_file (self, Path path)
 
def walk_directory (self, Path path)
 

Public Attributes

 statistics
 statistics object
 

Static Public Attributes

 regexes
 Dictionary keys must match attributes of Statistics class. More...
 

Detailed Description

Statistics visitor class

Definition at line 42 of file online_book_statistics.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize class

Definition at line 57 of file online_book_statistics.py.

Member Function Documentation

◆ read_rst_file()

def read_rst_file (   self,
Path  path 
)
Read rst file

Definition at line 62 of file online_book_statistics.py.

◆ walk_directory()

def walk_directory (   self,
Path  path 
)
Loop over all directories in the path

Definition at line 73 of file online_book_statistics.py.

Member Data Documentation

◆ regexes

regexes
static
Initial value:
= dict(
code_inclusions=re.compile("(code-block\\s*::)|(literalinclude\\s*::)"),
hints=re.compile(":class:.*hint"),
solutions=re.compile(":class:.*solution"),
exercises=re.compile(":class:.*exercise"),
overview_boxes=re.compile(":class:.*overview"),
key_points=re.compile(":class:.*key-points"),
figures=re.compile("figure\\s*::")
)

Dictionary keys must match attributes of Statistics class.

Definition at line 47 of file online_book_statistics.py.


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