From 9e600f85b2071f8fc0d71889227c3e9902c9bf0d Mon Sep 17 00:00:00 2001 From: Justin Haze Date: Mon, 11 Mar 2024 13:38:39 -0600 Subject: [PATCH] increment version, autoformat --- scos_actions/__init__.py | 2 +- scos_actions/actions/acquire_sea_data_product.py | 3 ++- scos_actions/actions/acquire_single_freq_fft.py | 2 +- scos_actions/hardware/mocks/mock_sigan.py | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scos_actions/__init__.py b/scos_actions/__init__.py index 9e17e009..6dcf770e 100644 --- a/scos_actions/__init__.py +++ b/scos_actions/__init__.py @@ -1 +1 @@ -__version__ = "8.0.1" +__version__ = "9.0.0" diff --git a/scos_actions/actions/acquire_sea_data_product.py b/scos_actions/actions/acquire_sea_data_product.py index 1b68bdbc..ecc00785 100644 --- a/scos_actions/actions/acquire_sea_data_product.py +++ b/scos_actions/actions/acquire_sea_data_product.py @@ -794,7 +794,8 @@ def capture_diagnostics( "scos_sensor_version": SCOS_SENSOR_GIT_TAG, "scos_actions_version": SCOS_ACTIONS_VERSION, "scos_sigan_plugin": ntia_diagnostics.ScosPlugin( - name=self.sensor.signal_analyzer.plugin_name, version=self.sensor.signal_analyzer.plugin_version + name=self.sensor.signal_analyzer.plugin_name, + version=self.sensor.signal_analyzer.plugin_version, ), "preselector_api_version": PRESELECTOR_API_VERSION, "sigan_firmware_version": self.sensor.signal_analyzer.firmware_version, diff --git a/scos_actions/actions/acquire_single_freq_fft.py b/scos_actions/actions/acquire_single_freq_fft.py index 1408b2df..daccf9d6 100644 --- a/scos_actions/actions/acquire_single_freq_fft.py +++ b/scos_actions/actions/acquire_single_freq_fft.py @@ -188,7 +188,7 @@ def execute(self, schedule_entry: dict, task_id: int) -> dict: sample_start=0, start_time=measurement_result["capture_time"], center_frequency_Hz=self.frequency_Hz, - duration_ms=round((self.num_samples / sample_rate_Hz)*1000), + duration_ms=round((self.num_samples / sample_rate_Hz) * 1000), overload=measurement_result["overload"], sigan_settings=sigan_settings, ) diff --git a/scos_actions/hardware/mocks/mock_sigan.py b/scos_actions/hardware/mocks/mock_sigan.py index 5857a1b3..f102d03d 100644 --- a/scos_actions/hardware/mocks/mock_sigan.py +++ b/scos_actions/hardware/mocks/mock_sigan.py @@ -6,8 +6,8 @@ import numpy as np -from scos_actions import __version__ as SCOS_ACTIONS_VERSION from scos_actions import __package__ as SCOS_ACTIONS_NAME +from scos_actions import __version__ as SCOS_ACTIONS_VERSION from scos_actions.calibration.calibration import Calibration from scos_actions.hardware.sigan_iface import SignalAnalyzerInterface from scos_actions.utils import get_datetime_str_now @@ -86,7 +86,7 @@ def is_available(self): @property def plugin_version(self): return self._plugin_version - + @property def plugin_name(self) -> str: """Returns the current package name of scos-actions."""