Skip to content

Commit

Permalink
Merge pull request #222 from catalystneuro/add_electrical_series_bug_fix
Browse files Browse the repository at this point in the history
channel ids for dtype bug fix
  • Loading branch information
CodyCBakerPhD authored Aug 4, 2021
2 parents f04a39a + a2708ce commit 5741219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nwb_conversion_tools/utils/spike_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def add_electrical_series(
eseries_kwargs.update(conversion=1e-6)
eseries_kwargs.update(channel_conversion=channel_conversion)

trace_dtype = recording.get_traces(channel_ids=[0], end_frame=1).dtype
trace_dtype = recording.get_traces(channel_ids=channel_ids[:1], end_frame=1).dtype
estimated_memory = trace_dtype.itemsize * recording.get_num_channels() * recording.get_num_frames()
if not iterate and psutil.virtual_memory().available <= estimated_memory:
warn("iteration was disabled, but not enough memory to load traces! Forcing iterate=True.")
Expand Down

0 comments on commit 5741219

Please sign in to comment.