Skip to content

Commit

Permalink
Add firmware and API version properties to mock sigan
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Dec 26, 2023
1 parent 1b996b5 commit f796d32
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scos_actions/hardware/mocks/mock_sigan.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def __init__(self, randomize_values=False):
self._capture_time = None
self._is_available = True
self._plugin_version = SCOS_ACTIONS_VERSION
self._firmware_version = "1.2.3"
self._api_version = "v1.2.3"

# Simulate returning less than the requested number of samples from
# self.recv_num_samps
Expand All @@ -55,6 +57,14 @@ def is_available(self):
@property
def plugin_version(self):
return self._plugin_version

@property
def firmware_version(self):
return self._firmware_version

@property
def api_version(self):
return self._api_version

@property
def sample_rate(self):
Expand Down

0 comments on commit f796d32

Please sign in to comment.