nost-tools 2.0.2__tar.gz → 2.0.4__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.
Potentially problematic release.
This version of nost-tools might be problematic. Click here for more details.
- {nost_tools-2.0.2 → nost_tools-2.0.4}/PKG-INFO +2 -2
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/__init__.py +1 -1
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/managed_application.py +7 -4
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/manager.py +15 -4
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/schemas.py +3 -2
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools.egg-info/PKG-INFO +2 -2
- {nost_tools-2.0.2 → nost_tools-2.0.4}/pyproject.toml +1 -1
- {nost_tools-2.0.2 → nost_tools-2.0.4}/LICENSE +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/README.md +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/application.py +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/application_utils.py +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/configuration.py +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/entity.py +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/errors.py +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/logger_application.py +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/observer.py +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/publisher.py +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools/simulator.py +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools.egg-info/SOURCES.txt +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools.egg-info/dependency_links.txt +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools.egg-info/requires.txt +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/nost_tools.egg-info/top_level.txt +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/setup.cfg +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/tests/test_entity.py +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/tests/test_observer.py +0 -0
- {nost_tools-2.0.2 → nost_tools-2.0.4}/tests/test_simulator.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nost_tools
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.4
|
|
4
4
|
Summary: Tools for Novel Observing Strategies Testbed (NOS-T) Applications
|
|
5
5
|
Author-email: "Paul T. Grogan" <paul.grogan@asu.edu>, "Emmanuel M. Gonzalez" <emmanuelgonzalez@asu.edu>
|
|
6
|
-
License: BSD
|
|
6
|
+
License-Expression: BSD-3-Clause
|
|
7
7
|
Classifier: Programming Language :: Python :: 3
|
|
8
8
|
Classifier: Operating System :: OS Independent
|
|
9
9
|
Classifier: Development Status :: 4 - Beta
|
|
@@ -86,11 +86,14 @@ class ManagedApplication(Application):
|
|
|
86
86
|
self.manager_app_name = manager_app_name
|
|
87
87
|
else:
|
|
88
88
|
self.config = config
|
|
89
|
-
parameters =
|
|
90
|
-
self.config.rc.simulation_configuration.execution_parameters
|
|
91
|
-
"managed_application",
|
|
92
|
-
None,
|
|
89
|
+
parameters = (
|
|
90
|
+
self.config.rc.simulation_configuration.execution_parameters.managed_applications
|
|
93
91
|
)
|
|
92
|
+
|
|
93
|
+
try:
|
|
94
|
+
parameters = parameters[self.app_name]
|
|
95
|
+
except KeyError:
|
|
96
|
+
parameters = parameters["default"]
|
|
94
97
|
self.set_offset = parameters.set_offset
|
|
95
98
|
self.time_status_step = parameters.time_status_step
|
|
96
99
|
self.time_status_init = parameters.time_status_init
|
|
@@ -98,7 +98,21 @@ class Manager(Application):
|
|
|
98
98
|
auto_delete=True,
|
|
99
99
|
)
|
|
100
100
|
|
|
101
|
-
def execute_test_plan(
|
|
101
|
+
def execute_test_plan(self, *args, **kwargs) -> None:
|
|
102
|
+
"""
|
|
103
|
+
Starts the test plan execution in a background thread.
|
|
104
|
+
|
|
105
|
+
Args:
|
|
106
|
+
*args: Positional arguments to be passed to the test plan execution.
|
|
107
|
+
**kwargs: Keyword arguments to be passed to the test plan execution.
|
|
108
|
+
"""
|
|
109
|
+
thread = threading.Thread(
|
|
110
|
+
target=self._execute_test_plan_impl, args=args, kwargs=kwargs, daemon=True
|
|
111
|
+
)
|
|
112
|
+
logger.debug("Running test plan in background thread.")
|
|
113
|
+
thread.start()
|
|
114
|
+
|
|
115
|
+
def _execute_test_plan_impl(
|
|
102
116
|
self,
|
|
103
117
|
sim_start_time: datetime = None,
|
|
104
118
|
sim_stop_time: datetime = None,
|
|
@@ -163,9 +177,6 @@ class Manager(Application):
|
|
|
163
177
|
self.time_status_step = parameters.time_status_step
|
|
164
178
|
self.time_status_init = parameters.time_status_init
|
|
165
179
|
self.command_lead = parameters.command_lead
|
|
166
|
-
# self.required_apps = (
|
|
167
|
-
# self.config.rc.simulation_configuration.execution_parameters.required_apps
|
|
168
|
-
# )
|
|
169
180
|
self.required_apps = [
|
|
170
181
|
app for app in parameters.required_apps if app != self.app_name
|
|
171
182
|
]
|
|
@@ -397,8 +397,9 @@ class LoggerApplicationConfig(BaseModel):
|
|
|
397
397
|
class ExecConfig(BaseModel):
|
|
398
398
|
general: GeneralConfig
|
|
399
399
|
manager: Optional[ManagerConfig] = Field(None, description="Manager configuration.")
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
managed_applications: Optional[Dict[str, ManagedApplicationConfig]] = Field(
|
|
401
|
+
default_factory=lambda: {"default": ManagedApplicationConfig()},
|
|
402
|
+
description="Dictionary of managed application configurations, keyed by application name.",
|
|
402
403
|
)
|
|
403
404
|
logger_application: Optional[LoggerApplicationConfig] = Field(
|
|
404
405
|
None, description="Logger application configuration."
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nost_tools
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.4
|
|
4
4
|
Summary: Tools for Novel Observing Strategies Testbed (NOS-T) Applications
|
|
5
5
|
Author-email: "Paul T. Grogan" <paul.grogan@asu.edu>, "Emmanuel M. Gonzalez" <emmanuelgonzalez@asu.edu>
|
|
6
|
-
License: BSD
|
|
6
|
+
License-Expression: BSD-3-Clause
|
|
7
7
|
Classifier: Programming Language :: Python :: 3
|
|
8
8
|
Classifier: Operating System :: OS Independent
|
|
9
9
|
Classifier: Development Status :: 4 - Beta
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|