nost-tools 2.0.2__tar.gz → 2.0.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.

Potentially problematic release.


This version of nost-tools might be problematic. Click here for more details.

Files changed (26) hide show
  1. {nost_tools-2.0.2 → nost_tools-2.0.3}/PKG-INFO +2 -2
  2. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/__init__.py +1 -1
  3. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/managed_application.py +7 -4
  4. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/schemas.py +3 -2
  5. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools.egg-info/PKG-INFO +2 -2
  6. {nost_tools-2.0.2 → nost_tools-2.0.3}/pyproject.toml +1 -1
  7. {nost_tools-2.0.2 → nost_tools-2.0.3}/LICENSE +0 -0
  8. {nost_tools-2.0.2 → nost_tools-2.0.3}/README.md +0 -0
  9. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/application.py +0 -0
  10. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/application_utils.py +0 -0
  11. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/configuration.py +0 -0
  12. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/entity.py +0 -0
  13. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/errors.py +0 -0
  14. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/logger_application.py +0 -0
  15. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/manager.py +0 -0
  16. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/observer.py +0 -0
  17. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/publisher.py +0 -0
  18. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools/simulator.py +0 -0
  19. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools.egg-info/SOURCES.txt +0 -0
  20. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools.egg-info/dependency_links.txt +0 -0
  21. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools.egg-info/requires.txt +0 -0
  22. {nost_tools-2.0.2 → nost_tools-2.0.3}/nost_tools.egg-info/top_level.txt +0 -0
  23. {nost_tools-2.0.2 → nost_tools-2.0.3}/setup.cfg +0 -0
  24. {nost_tools-2.0.2 → nost_tools-2.0.3}/tests/test_entity.py +0 -0
  25. {nost_tools-2.0.2 → nost_tools-2.0.3}/tests/test_observer.py +0 -0
  26. {nost_tools-2.0.2 → nost_tools-2.0.3}/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.2
3
+ Version: 2.0.3
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 License
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
@@ -1,4 +1,4 @@
1
- __version__ = "2.0.2"
1
+ __version__ = "2.0.3"
2
2
 
3
3
  from .application import Application
4
4
  from .application_utils import ConnectionConfig, ModeStatusObserver, TimeStatusPublisher
@@ -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 = getattr(
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
@@ -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
- managed_application: Optional[ManagedApplicationConfig] = Field(
401
- None, description="Managed application configuration."
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.2
3
+ Version: 2.0.3
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 License
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
@@ -14,7 +14,7 @@ authors = [
14
14
  ]
15
15
  readme = "README.md"
16
16
  requires-python =">=3.9"
17
- license = {text = "BSD License"}
17
+ license = "BSD-3-Clause"
18
18
  classifiers = [
19
19
  "Programming Language :: Python :: 3",
20
20
  "Operating System :: OS Independent",
File without changes
File without changes
File without changes