Formatting fixes
This commit is contained in:
parent
a2905073a8
commit
9c387eff6a
|
@ -1,12 +1,11 @@
|
|||
from typing import Optional
|
||||
|
||||
import numpy as np
|
||||
from bladerf import _bladerf
|
||||
|
||||
from ria_toolkit_oss.datatypes import Recording
|
||||
from ria_toolkit_oss.sdr import SDR
|
||||
|
||||
from bladerf import _bladerf
|
||||
|
||||
|
||||
class Blade(SDR):
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ from ria_toolkit_oss.datatypes.recording import Recording
|
|||
|
||||
class SDR(ABC):
|
||||
"""
|
||||
This class defines a common interface (a template) for all SDR devices.
|
||||
This class defines a common interface (a template) for all SDR devices.
|
||||
Each specific SDR implementation should subclass SDR and provide concrete implementations
|
||||
for the abstract methods.
|
||||
|
||||
|
@ -22,7 +22,7 @@ class SDR(ABC):
|
|||
"""
|
||||
|
||||
def __init__(self):
|
||||
|
||||
|
||||
self._rx_initialized = False
|
||||
self._tx_initialized = False
|
||||
self._enable_rx = False
|
||||
|
@ -36,7 +36,7 @@ class SDR(ABC):
|
|||
def record(self, num_samples: Optional[int] = None, rx_time: Optional[int | float] = None) -> Recording:
|
||||
"""
|
||||
Create a radio recording of a given length. Either ``num_samples`` or ``rx_time`` must be provided.
|
||||
|
||||
|
||||
Note that ``init_rx()`` must be called before ``record()``.
|
||||
|
||||
:param num_samples: The number of samples to record.
|
||||
|
|
Loading…
Reference in New Issue
Block a user