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.
Files changed (56) hide show
  1. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/PKG-INFO +1 -1
  2. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtc_tools_interface.egg-info/PKG-INFO +1 -1
  3. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/_version.py +3 -3
  4. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/base_goal.py +5 -5
  5. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/COPYING.LESSER +0 -0
  6. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/README.md +0 -0
  7. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtc_tools_interface.egg-info/SOURCES.txt +0 -0
  8. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtc_tools_interface.egg-info/dependency_links.txt +0 -0
  9. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtc_tools_interface.egg-info/requires.txt +0 -0
  10. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtc_tools_interface.egg-info/top_level.txt +0 -0
  11. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/__init__.py +0 -0
  12. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/closed_loop/__init__.py +0 -0
  13. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/closed_loop/closed_loop_dates.py +0 -0
  14. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/closed_loop/results_construction.py +0 -0
  15. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/closed_loop/runner.py +0 -0
  16. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/closed_loop/time_series_handler.py +0 -0
  17. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/__init__.py +0 -0
  18. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/base_optimization_problem.py +0 -0
  19. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/goal_generator_mixin.py +0 -0
  20. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/goal_performance_metrics.py +0 -0
  21. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/goal_table_schema.py +0 -0
  22. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/helpers/__init__.py +0 -0
  23. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/helpers/statistics_mixin.py +0 -0
  24. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/plot_goals_mixin.py +0 -0
  25. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/plot_mixin.py +0 -0
  26. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/optimization/read_goals.py +0 -0
  27. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/plotting/__init__.py +0 -0
  28. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/plotting/plot_tools.py +0 -0
  29. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/plotting/subplot_classes.py +0 -0
  30. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/simulation/__init__.py +0 -0
  31. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/simulation/base_simulation_problem.py +0 -0
  32. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/simulation/plot_mixin.py +0 -0
  33. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/__init__.py +0 -0
  34. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/plot_table_schema.py +0 -0
  35. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/read_goals_mixin.py +0 -0
  36. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/read_plot_table.py +0 -0
  37. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/results_collection.py +0 -0
  38. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/serialization.py +0 -0
  39. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/rtctools_interface/utils/type_definitions.py +0 -0
  40. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/setup.cfg +0 -0
  41. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/setup.py +0 -0
  42. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/__init__.py +0 -0
  43. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/closed_loop/__init__.py +0 -0
  44. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/closed_loop/test_read_xml.py +0 -0
  45. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/closed_loop/test_run_optization_problem_closed_loop.py +0 -0
  46. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/optimization/__init__.py +0 -0
  47. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/optimization/test_base_optimization_problem.py +0 -0
  48. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/optimization/test_passing_goals_directly.py +0 -0
  49. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/optimization/test_plot_goals_mixin.py +0 -0
  50. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/optimization/test_read_goals.py +0 -0
  51. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/simulation/__init__.py +0 -0
  52. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/simulation/test_base_simulation_problem.py +0 -0
  53. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/simulation/test_plot_mixin.py +0 -0
  54. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/utils/__init__.py +0 -0
  55. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/tests/utils/get_test.py +0 -0
  56. {rtc-tools-interface-0.8.0b1 → rtc-tools-interface-0.8.0b2}/versioneer.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rtc-tools-interface
3
- Version: 0.8.0b1
3
+ Version: 0.8.0b2
4
4
  Summary: Toolbox for user interfaces for RTC-Tools
5
5
  Home-page: UNKNOWN
6
6
  Author: Deltares
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rtc-tools-interface
3
- Version: 0.8.0b1
3
+ Version: 0.8.0b2
4
4
  Summary: Toolbox for user interfaces for RTC-Tools
5
5
  Home-page: UNKNOWN
6
6
  Author: Deltares
@@ -8,11 +8,11 @@ import json
8
8
 
9
9
  version_json = '''
10
10
  {
11
- "date": "2024-05-14T13:07:46+0000",
11
+ "date": "2024-05-28T11:08:07+0200",
12
12
  "dirty": false,
13
13
  "error": null,
14
- "full-revisionid": "15b08ad1d9b44c30047d6ddc5e287d54bac80244",
15
- "version": "0.8.0b1"
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 (not np.isfinite(function_min) and not np.isfinite(state_range[0])) or (
128
- not np.isfinite(function_max) and not np.isfinite(state_range[1])
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,