Skip to content

Commit

Permalink
Add scos-sensor version to SEA action metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Sep 8, 2023
1 parent a00a414 commit 70f6890
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scos_actions/actions/acquire_sea_data_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import platform
import sys
from enum import EnumMeta
from environs import Env
from time import perf_counter
from typing import Tuple

Expand Down Expand Up @@ -77,6 +78,7 @@
from scos_actions.status import start_time
from scos_actions.utils import convert_datetime_to_millisecond_iso_format, get_days_up

env = Env()
logger = logging.getLogger(__name__)

if not ray.is_initialized():
Expand Down Expand Up @@ -791,6 +793,7 @@ def capture_diagnostics(self, action_start_tic: float, cpu_speeds: list) -> None
software_diag = {
"system_platform": platform.platform(),
"python_version": sys.version.split()[0],
"scos_sensor_version": env("SCOS_SENSOR_GIT_TAG", "unknown"),
"scos_actions_version": SCOS_ACTIONS_VERSION,
"preselector_api_version": PRESELECTOR_API_VERSION,
}
Expand Down
2 changes: 2 additions & 0 deletions scos_actions/metadata/structs/ntia_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,14 @@ class Software(msgspec.Struct, **SIGMF_OBJECT_KWARGS):
:param system_platform: The underlying platform, as returned by `platform.platform()`
:param python_version: The Python version, as returned by `sys.version()`.
:param scos_sensor_version: The SCOS Sensor version, as returned by `git describe --tags`.
:param scos_actions_version: Version of `scos_actions` plugin.
:param preselector_api_version: Version of the NTIA `preselector` package.
"""

system_platform: Optional[str] = None
python_version: Optional[str] = None
scos_sensor_version: Optional[str] = None
scos_actions_version: Optional[str] = None
preselector_api_version: Optional[str] = None

Expand Down

0 comments on commit 70f6890

Please sign in to comment.