Skip to content

Commit 02498c1

Browse files
authored
Merge pull request #11 from cyiallou/task/update-lic-discl
Update license disclaimer
2 parents 3a52b3f + 4cd6a46 commit 02498c1

19 files changed

+52
-50
lines changed

src/frequenz/datasci/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# License: Proprietary
2-
# Copyright © 2024 Frequenz Energy-as-a-Service GmbH
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
33

44
"""Initialise the datasci module."""
55

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# License: Proprietary
2-
# Copyright © 2024 Frequenz Energy-as-a-Service GmbH
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
33

44
"""Module for interacting with the weather API service."""

src/frequenz/datasci/weather/weather_api.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""
25
Module for interacting with the weather API service for fetching historical forecast data.
36
47
The module provides a client for the weather API service. The client can be used
58
to retrieve historical weather forecast data for multiple locations and a given
69
time range.
7-
8-
License: MIT
9-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH
1010
"""
1111

1212
from datetime import datetime

src/frequenz/lib/notebooks/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# License: Proprietary
2-
# Copyright © 2024 Frequenz Energy-as-a-Service GmbH
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
33

44
"""Configuration for microgrids."""
55

src/frequenz/lib/notebooks/notification_service.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""
25
This module provides a notification service for sending alert notifications.
36
@@ -57,9 +60,6 @@
5760
# Stop the scheduler after some time if needed
5861
time.sleep(300)
5962
email_notification.stop_scheduler()
60-
61-
62-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
6363
"""
6464

6565
import logging
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# License: Proprietary
2-
# Copyright © 2024 Frequenz Energy-as-a-Service GmbH
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
33

44
"""Initialise the solar related modules."""

src/frequenz/lib/notebooks/solar/maintenance/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# License: Proprietary
2-
# Copyright © 2024 Frequenz Energy-as-a-Service GmbH
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
33

44
"""Initialise the solar maintenance module."""
55

src/frequenz/lib/notebooks/solar/maintenance/config.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""
25
This module contains the SolarMaintenanceConfig class.
36
47
The SolarMaintenanceConfig class is a configuration class that contains
58
parameters and methods to update them dynamically, ensuring consistency and
69
preventing unauthorized modifications. The class inherits from ConfigConstants,
710
which contains immutable constants for the Solar Maintenance Project.
8-
9-
10-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
1111
"""
1212

1313
import datetime

src/frequenz/lib/notebooks/solar/maintenance/data_fetch.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""
25
Dedicated to data retrieval functionalities for the solar maintenance project.
36
47
This module provides functions that fetch and transform data from the weather
58
and reporting APIs or csv files.
6-
7-
8-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
99
"""
1010

1111
from dataclasses import dataclass, field

src/frequenz/lib/notebooks/solar/maintenance/data_processing.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""
25
Handles all data processing and transformation tasks for the solar maintenance project.
36
47
The module contains functions to preprocess solar power production data, calculate
58
statistical metrics, segment and analyse the data, and transform weather features.
6-
7-
8-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
99
"""
1010

1111
import re

src/frequenz/lib/notebooks/solar/maintenance/models.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""
25
This module contains the functions to prepare prediction models.
36
@@ -8,8 +11,6 @@
811
from the model specifications. It returns a dictionary with model labels as keys
912
and dictionaries containing the predictions as values. The predictions are stored
1013
as pandas Series with the same index as the input data and the name 'predictions'.
11-
12-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
1314
"""
1415

1516
from datetime import datetime, timedelta

src/frequenz/lib/notebooks/solar/maintenance/plot_manager.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""
25
Plot Manager Module.
36
@@ -13,9 +16,6 @@
1316
- Update legends for figures based on specified axes and configurations.
1417
- Apply predefined plot styles to the figures.
1518
- Display and save all managed figures.
16-
17-
18-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
1919
"""
2020

2121
import logging

src/frequenz/lib/notebooks/solar/maintenance/plot_styles.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""Module for plot style strategies for the plot_functions module.
25
36
This module contains the PlotStyleStrategy abstract base class and its subclasses
47
for different types of solar production profiles. The subclasses implement the
58
`get_plot_styles` method to return the plot styles based on the time frame and
69
additional parameters.
7-
8-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
910
"""
1011

1112
from abc import ABC, abstractmethod

src/frequenz/lib/notebooks/solar/maintenance/plotter.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""
25
Module for plotting data.
36
@@ -21,9 +24,6 @@ class is designed to work with a specific data preparer class from the
2124
Functions:
2225
- `_get_plot_styles`: Retrieves plot styling details for the specified plot type
2326
and time frame.
24-
25-
26-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
2727
"""
2828

2929
from abc import ABC, abstractmethod

src/frequenz/lib/notebooks/solar/maintenance/plotter_config.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""
25
Unified configuration module for plot data preparation and visualisation.
36
@@ -16,9 +19,6 @@
1619
Features:
1720
- A `create_config` method for merging multiple parameter sources into a
1821
unified configuration instance.
19-
20-
21-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
2222
"""
2323

2424
from dataclasses import dataclass, field, fields

src/frequenz/lib/notebooks/solar/maintenance/plotter_data_preparer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""
25
Module for preparing data for various plot types.
36
@@ -13,9 +16,6 @@
1316
- `ProfilePreparer`: Prepares data for statistical profile plots.
1417
- `DailyPreparer`: Prepares data for daily production plots.
1518
- `StatsPreparer`: Generates production statistics.
16-
17-
18-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
1919
"""
2020

2121
from abc import ABC, abstractmethod

src/frequenz/lib/notebooks/solar/maintenance/solar_maintenance_app.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""
25
This module contains the main entry point for the Solar Maintenance App.
36
@@ -7,9 +10,6 @@
710
811
The app is designed to be executed as a standalone application. The main entry
912
point for the Solar Maintenance App is the `run_workflow` function.
10-
11-
12-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
1313
"""
1414

1515
# pylint: disable=too-many-lines

src/frequenz/lib/notebooks/solar/maintenance/translator.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
3+
14
"""
25
This module provides a TranslationManager class for managing translations.
36
@@ -8,8 +11,6 @@ class provides methods to translate a single text or a list of texts. It also
811
and special characters. The class uses a dictionary to store translations for
912
different languages. Any text that needs to be translated should be added to
1013
the dictionary with the corresponding translations for each language.
11-
12-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
1314
"""
1415

1516
import re

tests/test_notification_service.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
"""
2-
Test module for the notification service.
1+
# License: MIT
2+
# Copyright © 2025 Frequenz Energy-as-a-Service GmbH
33

4-
Copyright © 2024 Frequenz Energy-as-a-Service GmbH. All rights reserved.
5-
"""
4+
"""Test module for the notification service."""
65

76
import logging
87
import time

0 commit comments

Comments
 (0)