Skip to content

Commit

Permalink
Merge pull request #1504 from NeuralEnsemble/black-formatting
Browse files Browse the repository at this point in the history
Black formatting
  • Loading branch information
zm711 authored Jul 7, 2024
2 parents f01d8cc + d4cb371 commit 4b71f45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions neo/rawio/intanrawio.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def _get_analogsignal_chunk_one_file_per_signal(self, i_start, i_stop, stream_in

def _demultiplex_digital_data(self, raw_digital_data, channel_ids, i_start, i_stop):

dtype = np.uint16 # We fix this to match the memmap dtype
dtype = np.uint16 # We fix this to match the memmap dtype
output = np.zeros((i_stop - i_start, len(channel_ids)), dtype=dtype)

for channel_index, channel_id in enumerate(channel_ids):
Expand Down Expand Up @@ -824,12 +824,12 @@ def read_rhs(filename, file_format: str):
chan_info["sampling_rate"] = sr
# arbitrary units are used to indicate that Intan does not
# store raw voltages but only the boolean TTL state
chan_info["units"] = "a.u."
chan_info["units"] = "a.u."
chan_info["gain"] = 1.0
chan_info["offset"] = 0.0
chan_info["dtype"] = "uint16"
ordered_channel_info.append(chan_info)

# Note that all the channels are packed in one buffer, so the data type only needs to be added once
if len(stream_id_to_channel_info_list[stream_id]) > 0:
if file_format == "header-attached":
Expand Down Expand Up @@ -1102,7 +1102,7 @@ def read_rhd(filename, file_format: str):
chan_info["sampling_rate"] = sr
# arbitrary units are used to indicate that Intan does not
# store raw voltages but only the boolean TTL state
chan_info["units"] = "a.u."
chan_info["units"] = "a.u."
chan_info["gain"] = 1.0
chan_info["offset"] = 0.0
chan_info["dtype"] = "uint16"
Expand Down

0 comments on commit 4b71f45

Please sign in to comment.