Skip to content

Commit 37d684c

Browse files
Update src/trodes_to_nwb/convert_optogenetics.py
Co-authored-by: Copilot <[email protected]>
1 parent bf6a9ba commit 37d684c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/trodes_to_nwb/convert_optogenetics.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,8 @@ 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-
),
358-
mode="empty",
351+
mode="constant",
352+
constant_values=np.nan,
359353
)
360354
row["spatial_filter_region_node_coordinates_in_pixels"] = nodes
361355

0 commit comments

Comments
 (0)