Skip to content

Commit 09fef98

Browse files
committed
fix formatting from copilot
1 parent 37d684c commit 09fef98

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/trodes_to_nwb/convert_optogenetics.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,13 @@ def add_optogenetic_epochs(
348348
np.ones(max_shape) * np.nan
349349
)
350350
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+
),
351358
mode="constant",
352359
constant_values=np.nan,
353360
)

0 commit comments

Comments
 (0)