pytrnsys_process.config package#

Submodules#

pytrnsys_process.config.constants module#

class pytrnsys_process.config.constants.PlotSizes(*values)[source]#

Bases: Enum

A4 = (7.8, 3.9)#
A4_HALF = (3.8, 3.9)#
class pytrnsys_process.config.constants.FilePattern(patterns: list[str], prefix: str)[source]#

Bases: object

patterns: list[str]#
prefix: str#
__init__(patterns: list[str], prefix: str) None#
class pytrnsys_process.config.constants.FileType(*values)[source]#

Bases: Enum

MONTHLY = FilePattern(patterns=['_mo_', '_mo$', '^mo_'], prefix='mo_')#
HOURLY = FilePattern(patterns=['_hr_', '_hr$', '^hr_'], prefix='hr_')#
TIMESTEP = FilePattern(patterns=['_step_', '_step$', '^step_', '_mfr_', '_mfr$', '_t$'], prefix='step_')#
DECK = '.dck'#
class pytrnsys_process.config.constants.FileNames(*values)[source]#

Bases: Enum

SIMULATION_PICKLE_FILE = 'simulation.pickle'#
SIMULATIONS_DATA_PICKLE_FILE = 'simulations_data.pickle'#

pytrnsys_process.config.settings module#

class pytrnsys_process.config.settings.Plot(file_formats: collections.abc.Sequence[str] = <factory>, figure_sizes: dict[str, tuple[float, float]] = <factory>, inkscape_path: str = 'C://Program Files//Inkscape//bin//inkscape.exe', x_label: str = '', y_label: str = '', title: str = '', date_format: str = '%b %Y', color_map: str = 'viridis', label_font_size: int = 10, legend_font_size: int = 8, title_font_size: int = 12, markers: collections.abc.Sequence[str] = <factory>)[source]#

Bases: object

file_formats: Sequence[str]#
figure_sizes: dict[str, tuple[float, float]]#
inkscape_path: str = 'C://Program Files//Inkscape//bin//inkscape.exe'#
x_label: str = ''#
y_label: str = ''#
title: str = ''#
date_format: str = '%b %Y'#
color_map: str = 'viridis'#
label_font_size: int = 10#
legend_font_size: int = 8#
title_font_size: int = 12#
markers: Sequence[str]#
__init__(file_formats: ~collections.abc.Sequence[str] = <factory>, figure_sizes: dict[str, tuple[float, float]] = <factory>, inkscape_path: str = 'C://Program Files//Inkscape//bin//inkscape.exe', x_label: str = '', y_label: str = '', title: str = '', date_format: str = '%b %Y', color_map: str = 'viridis', label_font_size: int = 10, legend_font_size: int = 8, title_font_size: int = 12, markers: ~collections.abc.Sequence[str] = <factory>) None#
class pytrnsys_process.config.settings.Reader(folder_name_for_printer_files: str = 'temp', read_step_files: bool = False, read_deck_files: bool = True, force_reread_prt: bool = False)[source]#

Bases: object

folder_name_for_printer_files: str = 'temp'#
read_step_files: bool = False#
read_deck_files: bool = True#
force_reread_prt: bool = False#
starting_year = 2024#
__init__(folder_name_for_printer_files: str = 'temp', read_step_files: bool = False, read_deck_files: bool = True, force_reread_prt: bool = False) None#
class pytrnsys_process.config.settings.Settings(plot: pytrnsys_process.config.settings.Plot, reader: pytrnsys_process.config.settings.Reader)[source]#

Bases: object

plot: Plot#
reader: Reader#
__init__(plot: Plot, reader: Reader) None#
class pytrnsys_process.config.settings.Defaults(*values)[source]#

Bases: Enum

Default settings for different use cases

DEFAULT = Settings(plot=Plot(file_formats=['.png', '.pdf', '.emf'], figure_sizes={'A4': (7.8, 3.9), 'A4_HALF': (3.8, 3.9)}, inkscape_path='C://Program Files//Inkscape//bin//inkscape.exe', x_label='', y_label='', title='', date_format='%b %Y', color_map='viridis', label_font_size=10, legend_font_size=8, title_font_size=12, markers=['x', 'o', '^', 'D', 'v', '<', '>', 'p', '*', 's']), reader=Reader(folder_name_for_printer_files='temp', read_step_files=False, read_deck_files=True, force_reread_prt=False))#

Module contents#

class pytrnsys_process.config.Defaults(*values)[source]#

Bases: Enum

Default settings for different use cases

DEFAULT = Settings(plot=Plot(file_formats=['.png', '.pdf', '.emf'], figure_sizes={'A4': (7.8, 3.9), 'A4_HALF': (3.8, 3.9)}, inkscape_path='C://Program Files//Inkscape//bin//inkscape.exe', x_label='', y_label='', title='', date_format='%b %Y', color_map='viridis', label_font_size=10, legend_font_size=8, title_font_size=12, markers=['x', 'o', '^', 'D', 'v', '<', '>', 'p', '*', 's']), reader=Reader(folder_name_for_printer_files='temp', read_step_files=False, read_deck_files=True, force_reread_prt=False))#
class pytrnsys_process.config.PlotSizes(*values)[source]#

Bases: Enum

A4 = (7.8, 3.9)#
A4_HALF = (3.8, 3.9)#
class pytrnsys_process.config.FilePattern(patterns: list[str], prefix: str)[source]#

Bases: object

__init__(patterns: list[str], prefix: str) None#
patterns: list[str]#
prefix: str#
class pytrnsys_process.config.FileType(*values)[source]#

Bases: Enum

MONTHLY = FilePattern(patterns=['_mo_', '_mo$', '^mo_'], prefix='mo_')#
HOURLY = FilePattern(patterns=['_hr_', '_hr$', '^hr_'], prefix='hr_')#
TIMESTEP = FilePattern(patterns=['_step_', '_step$', '^step_', '_mfr_', '_mfr$', '_t$'], prefix='step_')#
DECK = '.dck'#
class pytrnsys_process.config.FileNames(*values)[source]#

Bases: Enum

SIMULATION_PICKLE_FILE = 'simulation.pickle'#
SIMULATIONS_DATA_PICKLE_FILE = 'simulations_data.pickle'#