We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37d684c commit 09fef98Copy full SHA for 09fef98
src/trodes_to_nwb/convert_optogenetics.py
@@ -348,6 +348,13 @@ def add_optogenetic_epochs(
348
np.ones(max_shape) * np.nan
349
)
350
else:
351
+ nodes = np.pad(
352
+ nodes,
353
+ (
354
+ (0, max_shape[0] - nodes.shape[0]),
355
+ (0, max_shape[1] - nodes.shape[1]),
356
+ (0, max_shape[2] - nodes.shape[2]),
357
+ ),
358
mode="constant",
359
constant_values=np.nan,
360
0 commit comments