rtc-tools-interface 0.8.0b1__tar.gz → 0.8.0b2__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.8.0b1 → rtc-tools-interface-0.8.0b2}/PKG-INFO +1 -1
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtc_tools_interface.egg-info/PKG-INFO +1 -1
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/_version.py +3 -3
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/base_goal.py +5 -5
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/COPYING.LESSER +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/README.md +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtc_tools_interface.egg-info/SOURCES.txt +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtc_tools_interface.egg-info/dependency_links.txt +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtc_tools_interface.egg-info/requires.txt +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtc_tools_interface.egg-info/top_level.txt +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/__init__.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/closed_loop/__init__.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/closed_loop/closed_loop_dates.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/closed_loop/results_construction.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/closed_loop/runner.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/closed_loop/time_series_handler.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/__init__.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/base_optimization_problem.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/goal_generator_mixin.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/goal_performance_metrics.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/goal_table_schema.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/helpers/__init__.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/helpers/statistics_mixin.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/plot_goals_mixin.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/plot_mixin.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/read_goals.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/plotting/__init__.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/plotting/plot_tools.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/plotting/subplot_classes.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/simulation/__init__.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/simulation/base_simulation_problem.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/simulation/plot_mixin.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/__init__.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/plot_table_schema.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/read_goals_mixin.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/read_plot_table.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/results_collection.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/serialization.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/type_definitions.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/setup.cfg +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/setup.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/__init__.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/closed_loop/__init__.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/closed_loop/test_read_xml.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/closed_loop/test_run_optization_problem_closed_loop.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/optimization/__init__.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/optimization/test_base_optimization_problem.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/optimization/test_passing_goals_directly.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/optimization/test_plot_goals_mixin.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/optimization/test_read_goals.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/simulation/__init__.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/simulation/test_base_simulation_problem.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/simulation/test_plot_mixin.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/utils/__init__.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/utils/get_test.py +0 -0
- {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/versioneer.py +0 -0
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2024-05-
|
|
11
|
+
"date": "2024-05-28T11:08:07+0200",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "0.8.
|
|
14
|
+
"full-revisionid": "706b384c4fcf2b2621e9370973ec8ecc78765fb8",
|
|
15
|
+
"version": "0.8.0b2"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -124,9 +124,9 @@ class BaseGoal(Goal):
|
|
|
124
124
|
):
|
|
125
125
|
"""Set function bounds either by user specified value or calculated"""
|
|
126
126
|
state_range = self._get_state_range(optimization_problem, self.state)
|
|
127
|
-
if (
|
|
128
|
-
|
|
129
|
-
):
|
|
127
|
+
if (~np.isfinite(function_min) & ~np.isfinite(state_range[0])).any() or (
|
|
128
|
+
~np.isfinite(function_max) & ~np.isfinite(state_range[1])
|
|
129
|
+
).any():
|
|
130
130
|
raise ValueError(
|
|
131
131
|
f"The upper/lower bound for state {self.state} for goal with id={self.goal_id} is not specified"
|
|
132
132
|
+ " so the function range should be specified!"
|
|
@@ -215,8 +215,8 @@ class BaseGoal(Goal):
|
|
|
215
215
|
"goal_id": self.goal_id,
|
|
216
216
|
"state": self.state,
|
|
217
217
|
"goal_type": self.goal_type,
|
|
218
|
-
"function_min": self.function_range[0] if np.isfinite(self.function_range[0]) else None,
|
|
219
|
-
"function_max": self.function_range[1] if np.isfinite(self.function_range[1]) else None,
|
|
218
|
+
"function_min": self.function_range[0] if np.any(np.isfinite(self.function_range[0])) else None,
|
|
219
|
+
"function_max": self.function_range[1] if np.any(np.isfinite(self.function_range[1])) else None,
|
|
220
220
|
"function_nominal": self.function_nominal if np.isfinite(self.function_nominal) else None,
|
|
221
221
|
"target_min_series": None,
|
|
222
222
|
"target_max_series": None,
|
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtc_tools_interface.egg-info/SOURCES.txt
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
|
{rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/closed_loop/runner.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/plotting/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/__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
|
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/closed_loop/test_read_xml.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/optimization/test_read_goals.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/simulation/test_plot_mixin.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|