Skip to content

Commit eb0555a

Browse files
committed
formatting
1 parent 8c4cece commit eb0555a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/source/quickstart.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ For fixed-point datasets, you can control whether samples are automatically scal
9090
.. code-block:: python
9191
9292
import sigmf
93-
93+
9494
# Default behavior: autoscale fixed-point data to [-1.0, 1.0] range
9595
handle = sigmf.fromfile("fixed_point_data.sigmf")
9696
samples = handle.read_samples() # Returns float32/complex64
97-
97+
9898
# Disable autoscaling to access raw integer values
99-
handle_raw = sigmf.fromfile("fixed_point_data.sigmf", autoscale=False)
99+
handle_raw = sigmf.fromfile("fixed_point_data.sigmf", autoscale=False)
100100
raw_samples = handle_raw.read_samples() # Returns original integer types
101-
101+
102102
# Both slicing and read_samples() respect the autoscale setting
103103
assert handle[0:10].dtype == handle.read_samples(count=10).dtype

sigmf/sigmffile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def __next__(self):
221221
def __getitem__(self, sli):
222222
mem = self._memmap[sli] # matches behavior of numpy.ndarray.__getitem__()
223223

224-
# original behavior: always apply _return_type conversion if set
224+
# apply _return_type conversion if set
225225
if self._return_type is None:
226226
# no special conversion needed
227227
if not self.autoscale:
@@ -253,7 +253,7 @@ def __getitem__(self, sli):
253253
# floating-point data, no scaling needed
254254
return mem
255255

256-
# handle complex data type conversion (original behavior)
256+
# handle complex data type conversion
257257
if self._memmap.ndim == 2:
258258
# num_channels == 1
259259
ray = mem[:, 0].astype(self._return_type) + 1.0j * mem[:, 1].astype(self._return_type)

0 commit comments

Comments
 (0)