Skip to content

Commit 1f21ea0

Browse files
committed
Chore: don't confusingly override stream variable name
1 parent b57d390 commit 1f21ea0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

python/twinleaf/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ def _samples_list(self, n: int = 1, stream: str = "", columns: list[str] | None=
7979
# Convert to list with rows of data. Not super happy about how inefficient this is.
8080
if len(streams.items()) > 1:
8181
raise NotImplementedError("Stream concatenation not yet implemented for two different streams")
82-
stream = list(streams.values())[0]
83-
stream.pop('stream')
82+
stream_dict = list(streams.values())[0]
83+
stream_dict.pop('stream')
8484
if not time_column:
85-
stream.pop('time')
86-
data_columns = [column for column in stream.values() ]
85+
stream_dict.pop('time')
86+
data_columns = [column for column in stream_dict.values() ]
8787
data_rows = [list(row) for row in zip(*data_columns)]
8888
if title_row:
89-
column_names = list(stream.keys())
89+
column_names = list(stream_dict.keys())
9090
data_rows.insert(0,column_names)
9191
return data_rows
9292

0 commit comments

Comments
 (0)