rtc-tools-interface 0.7.1__tar.gz → 0.7.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/PKG-INFO +2 -2
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtc_tools_interface.egg-info/PKG-INFO +2 -2
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/_version.py +3 -3
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/base_goal.py +1 -1
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/plot_mixin.py +2 -1
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/simulation/plot_mixin.py +2 -1
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/utils/results_collection.py +2 -2
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/setup.py +1 -1
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/COPYING.LESSER +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/README.md +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtc_tools_interface.egg-info/SOURCES.txt +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtc_tools_interface.egg-info/dependency_links.txt +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtc_tools_interface.egg-info/requires.txt +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtc_tools_interface.egg-info/top_level.txt +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/__init__.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/__init__.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/base_optimization_problem.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/goal_generator_mixin.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/goal_performance_metrics.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/goal_table_schema.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/helpers/__init__.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/helpers/statistics_mixin.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/plot_goals_mixin.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/read_goals.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/plotting/__init__.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/plotting/plot_tools.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/plotting/subplot_classes.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/simulation/__init__.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/simulation/base_simulation_problem.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/utils/__init__.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/utils/plot_table_schema.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/utils/read_goals_mixin.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/utils/read_plot_table.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/utils/serialization.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/utils/type_definitions.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/setup.cfg +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/__init__.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/optimization/__init__.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/optimization/test_base_optimization_problem.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/optimization/test_passing_goals_directly.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/optimization/test_plot_goals_mixin.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/optimization/test_read_goals.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/simulation/__init__.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/simulation/test_base_simulation_problem.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/simulation/test_plot_mixin.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/utils/__init__.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/utils/get_test.py +0 -0
- {rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/versioneer.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rtc-tools-interface
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: Toolbox for user interfaces for RTC-Tools
|
|
5
5
|
Home-page: UNKNOWN
|
|
6
6
|
Author: Deltares
|
|
7
7
|
Maintainer: Deltares
|
|
8
8
|
License: UNKNOWN
|
|
9
9
|
Platform: UNKNOWN
|
|
10
|
-
Requires-Python: >=3.
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
11
|
License-File: COPYING.LESSER
|
|
12
12
|
|
|
13
13
|
UNKNOWN
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtc_tools_interface.egg-info/PKG-INFO
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: rtc-tools-interface
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: Toolbox for user interfaces for RTC-Tools
|
|
5
5
|
Home-page: UNKNOWN
|
|
6
6
|
Author: Deltares
|
|
7
7
|
Maintainer: Deltares
|
|
8
8
|
License: UNKNOWN
|
|
9
9
|
Platform: UNKNOWN
|
|
10
|
-
Requires-Python: >=3.
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
11
|
License-File: COPYING.LESSER
|
|
12
12
|
|
|
13
13
|
UNKNOWN
|
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "
|
|
11
|
+
"date": "2024-03-05T11:26:05+0100",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "0.7.
|
|
14
|
+
"full-revisionid": "444bbd64198172e319ec16b7ee923ad775b0499d",
|
|
15
|
+
"version": "0.7.3"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/base_goal.py
RENAMED
|
@@ -150,7 +150,7 @@ class BaseGoal(Goal):
|
|
|
150
150
|
self.function_nominal = abs(self.function_range[0]) + abs(self.function_range[1]) / 2
|
|
151
151
|
return
|
|
152
152
|
self.function_nominal = 1.0
|
|
153
|
-
logger.warning("Function nominal not specified, nominal is set to 1.0")
|
|
153
|
+
logger.warning("Function nominal for goal with id '%s' not specified, nominal is set to 1.0", self.goal_id)
|
|
154
154
|
|
|
155
155
|
def _set_target_bounds(
|
|
156
156
|
self,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"""Mixin to store all required data for plotting. Can also call the plot function."""
|
|
2
|
+
|
|
2
3
|
import logging
|
|
3
4
|
|
|
4
5
|
from rtctools_interface.optimization.helpers.statistics_mixin import StatisticsMixin
|
|
@@ -20,7 +21,7 @@ class PlotMixin(PlottingBaseMixin, StatisticsMixin):
|
|
|
20
21
|
"""Store priority-dependent results required for plotting."""
|
|
21
22
|
timeseries_data = self.collect_timeseries_data(list(set(self.custom_variables + self.state_variables)))
|
|
22
23
|
to_store = {"timeseries_data": timeseries_data, "priority": priority}
|
|
23
|
-
self.
|
|
24
|
+
self._intermediate_results.append(to_store)
|
|
24
25
|
super().priority_completed(priority)
|
|
25
26
|
|
|
26
27
|
def post(self):
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/simulation/plot_mixin.py
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"""Mixin to store all required data for plotting. Can also call the plot function."""
|
|
2
|
+
|
|
2
3
|
import logging
|
|
3
4
|
|
|
4
5
|
from rtctools_interface.plotting.plot_tools import create_plot_final_results
|
|
@@ -19,7 +20,7 @@ class PlotMixin(PlottingBaseMixin):
|
|
|
19
20
|
super().post()
|
|
20
21
|
|
|
21
22
|
timeseries_data = self.collect_timeseries_data(self.custom_variables)
|
|
22
|
-
self.
|
|
23
|
+
self._intermediate_results.append({"timeseries_data": timeseries_data, "priority": 0})
|
|
23
24
|
current_run = self.create_plot_data_and_config([])
|
|
24
25
|
self._store_current_results(self._cache_folder, current_run)
|
|
25
26
|
|
|
@@ -141,7 +141,7 @@ class PlottingBaseMixin(ReadGoalsMixin):
|
|
|
141
141
|
def pre(self):
|
|
142
142
|
"""Tasks before optimizing."""
|
|
143
143
|
super().pre()
|
|
144
|
-
self.
|
|
144
|
+
self._intermediate_results = []
|
|
145
145
|
|
|
146
146
|
def collect_timeseries_data(self, all_variables_to_store: List[str]) -> Dict[str, np.ndarray]:
|
|
147
147
|
"""Collect the timeseries data for a list of variables."""
|
|
@@ -171,7 +171,7 @@ class PlottingBaseMixin(ReadGoalsMixin):
|
|
|
171
171
|
"save_plot_to": self.save_plot_to,
|
|
172
172
|
}
|
|
173
173
|
plot_data_and_config: PlotDataAndConfig = {
|
|
174
|
-
"intermediate_results": self.
|
|
174
|
+
"intermediate_results": self._intermediate_results,
|
|
175
175
|
"plot_options": plot_options,
|
|
176
176
|
"prio_independent_data": prio_independent_data,
|
|
177
177
|
"config_version": CONFIG_VERSION,
|
|
@@ -12,6 +12,6 @@ setup(
|
|
|
12
12
|
description="Toolbox for user interfaces for RTC-Tools",
|
|
13
13
|
install_requires=["pandas", "rtc-tools >= 2.5.0", "matplotlib", "plotly", "numpy", "pydantic"],
|
|
14
14
|
tests_require=["pytest", "pytest-runner"],
|
|
15
|
-
python_requires=">=3.
|
|
15
|
+
python_requires=">=3.9",
|
|
16
16
|
cmdclass=versioneer.get_cmdclass(),
|
|
17
17
|
)
|
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtc_tools_interface.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtc_tools_interface.egg-info/requires.txt
RENAMED
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtc_tools_interface.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/optimization/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/plotting/__init__.py
RENAMED
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/plotting/plot_tools.py
RENAMED
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/simulation/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/utils/read_goals_mixin.py
RENAMED
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/utils/read_plot_table.py
RENAMED
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/utils/serialization.py
RENAMED
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/rtctools_interface/utils/type_definitions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/optimization/test_plot_goals_mixin.py
RENAMED
|
File without changes
|
{rtc-tools-interface-0.7.1 → rtc-tools-interface-0.7.3}/tests/optimization/test_read_goals.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|