plotter_config
frequenz.lib.notebooks.solar.maintenance.plotter_config ¤
Unified configuration module for plot data preparation and visualisation.
This module contains dataclasses that define the configuration for different types of plot views. The configurations are designed to be shared between data preparers and plotters to eliminate redundancy and ensure consistency.
CLASS | DESCRIPTION |
---|---|
- `BaseViewConfig` |
A base class providing common configuration fields. |
- `CalendarViewConfig` |
Configuration for calendar view plots. |
- `RollingViewConfig` |
Configuration for rolling view plots. |
- `ProfileViewConfig` |
Configuration for statistical production profile plots. |
- `DailyViewConfig` |
Configuration for daily production plots. |
- `StatsViewConfig` |
Configuration for production statistics data. |
Features
- A
create_config
method for merging multiple parameter sources into a unified configuration instance.
Classes¤
frequenz.lib.notebooks.solar.maintenance.plotter_config.BaseViewConfig
dataclass
¤
Base configuration for plot data preparation and visualisation.
Source code in frequenz/lib/notebooks/solar/maintenance/plotter_config.py
Functions¤
create_config
classmethod
¤
Create a plot configuration instance by merging multiple parameter sources.
This method allows merging multiple configuration dictionaries
(*extra_params
) and keyword arguments (**kwargs
). Later dictionaries
and keyword arguments override earlier ones. It is useful for combining
base configurations, user overrides, and dynamic parameters.
PARAMETER | DESCRIPTION |
---|---|
*extra_params
|
One or more dictionaries to merge as configuration. |
**kwargs
|
Additional keyword arguments that override earlier parameters.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
T
|
An instance of the plot configuration class with the merged parameters. |
Source code in frequenz/lib/notebooks/solar/maintenance/plotter_config.py
frequenz.lib.notebooks.solar.maintenance.plotter_config.CalendarViewConfig
dataclass
¤
Bases: BaseViewConfig
Configuration for calendar view plot data.
Source code in frequenz/lib/notebooks/solar/maintenance/plotter_config.py
Functions¤
create_config
classmethod
¤
Create a plot configuration instance by merging multiple parameter sources.
This method allows merging multiple configuration dictionaries
(*extra_params
) and keyword arguments (**kwargs
). Later dictionaries
and keyword arguments override earlier ones. It is useful for combining
base configurations, user overrides, and dynamic parameters.
PARAMETER | DESCRIPTION |
---|---|
*extra_params
|
One or more dictionaries to merge as configuration. |
**kwargs
|
Additional keyword arguments that override earlier parameters.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
T
|
An instance of the plot configuration class with the merged parameters. |
Source code in frequenz/lib/notebooks/solar/maintenance/plotter_config.py
frequenz.lib.notebooks.solar.maintenance.plotter_config.DailyViewConfig
dataclass
¤
Bases: BaseViewConfig
Configuration for daily production plot data.
Source code in frequenz/lib/notebooks/solar/maintenance/plotter_config.py
Functions¤
create_config
classmethod
¤
Create a plot configuration instance by merging multiple parameter sources.
This method allows merging multiple configuration dictionaries
(*extra_params
) and keyword arguments (**kwargs
). Later dictionaries
and keyword arguments override earlier ones. It is useful for combining
base configurations, user overrides, and dynamic parameters.
PARAMETER | DESCRIPTION |
---|---|
*extra_params
|
One or more dictionaries to merge as configuration. |
**kwargs
|
Additional keyword arguments that override earlier parameters.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
T
|
An instance of the plot configuration class with the merged parameters. |
Source code in frequenz/lib/notebooks/solar/maintenance/plotter_config.py
frequenz.lib.notebooks.solar.maintenance.plotter_config.ProfileViewConfig
dataclass
¤
Bases: BaseViewConfig
Configuration for statistical production profile plot data.
Source code in frequenz/lib/notebooks/solar/maintenance/plotter_config.py
Functions¤
create_config
classmethod
¤
Create a plot configuration instance by merging multiple parameter sources.
This method allows merging multiple configuration dictionaries
(*extra_params
) and keyword arguments (**kwargs
). Later dictionaries
and keyword arguments override earlier ones. It is useful for combining
base configurations, user overrides, and dynamic parameters.
PARAMETER | DESCRIPTION |
---|---|
*extra_params
|
One or more dictionaries to merge as configuration. |
**kwargs
|
Additional keyword arguments that override earlier parameters.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
T
|
An instance of the plot configuration class with the merged parameters. |
Source code in frequenz/lib/notebooks/solar/maintenance/plotter_config.py
frequenz.lib.notebooks.solar.maintenance.plotter_config.RollingViewConfig
dataclass
¤
Bases: BaseViewConfig
Configuration for rolling view plot data.
Source code in frequenz/lib/notebooks/solar/maintenance/plotter_config.py
Functions¤
create_config
classmethod
¤
Create a plot configuration instance by merging multiple parameter sources.
This method allows merging multiple configuration dictionaries
(*extra_params
) and keyword arguments (**kwargs
). Later dictionaries
and keyword arguments override earlier ones. It is useful for combining
base configurations, user overrides, and dynamic parameters.
PARAMETER | DESCRIPTION |
---|---|
*extra_params
|
One or more dictionaries to merge as configuration. |
**kwargs
|
Additional keyword arguments that override earlier parameters.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
T
|
An instance of the plot configuration class with the merged parameters. |
Source code in frequenz/lib/notebooks/solar/maintenance/plotter_config.py
frequenz.lib.notebooks.solar.maintenance.plotter_config.StatsViewConfig
dataclass
¤
Bases: BaseViewConfig
Configuration for production statistics view.
Source code in frequenz/lib/notebooks/solar/maintenance/plotter_config.py
Functions¤
create_config
classmethod
¤
Create a plot configuration instance by merging multiple parameter sources.
This method allows merging multiple configuration dictionaries
(*extra_params
) and keyword arguments (**kwargs
). Later dictionaries
and keyword arguments override earlier ones. It is useful for combining
base configurations, user overrides, and dynamic parameters.
PARAMETER | DESCRIPTION |
---|---|
*extra_params
|
One or more dictionaries to merge as configuration. |
**kwargs
|
Additional keyword arguments that override earlier parameters.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
T
|
An instance of the plot configuration class with the merged parameters. |