Skip to content

Commit 5b3e75d

Browse files
committed
revert tqdm because somehow this code is run in read the docs
1 parent 703f35d commit 5b3e75d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

neo/rawio/plexonrawio.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ def _parse_header(self):
231231
# signals channels
232232
sig_channels = []
233233
all_sig_length = []
234-
chan_loop = trange(nb_sig_chan, desc="Parsing signal channels", leave=True, disable=not self.progress_bar)
234+
if self.progress_bar:
235+
chan_loop = trange(nb_sig_chan, desc="Parsing signal channels", leave=True)
236+
else:
237+
chan_loop = range(nb_sig_chan)
235238
for chan_index in chan_loop:
236239
h = slowChannelHeaders[chan_index]
237240
name = h["Name"].decode("utf8")
@@ -252,7 +255,7 @@ def _parse_header(self):
252255
0.5 * (2 ** global_header["BitsPerSpikeSample"]) * h["Gain"] * h["PreampGain"]
253256
)
254257
offset = 0.0
255-
stream_id = "0"
258+
s tream_id = "0"
256259
sig_channels.append((name, str(chan_id), sampling_rate, sig_dtype, units, gain, offset, stream_id))
257260

258261
sig_channels = np.array(sig_channels, dtype=_signal_channel_dtype)

0 commit comments

Comments
 (0)