Skip to content

Commit eb88067

Browse files
committed
add create optoggenetic epochs call to main function
1 parent cff697b commit eb88067

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/trodes_to_nwb/convert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from trodes_to_nwb.convert_dios import add_dios
1818
from trodes_to_nwb.convert_ephys import RecFileDataChunkIterator, add_raw_ephys
1919
from trodes_to_nwb.convert_intervals import add_epochs, add_sample_count
20-
from trodes_to_nwb.convert_optogenetics import add_optogenetics
20+
from trodes_to_nwb.convert_optogenetics import add_optogenetic_epochs, add_optogenetics
2121
from trodes_to_nwb.convert_position import add_associated_video_files, add_position
2222
from trodes_to_nwb.convert_rec_header import (
2323
add_header_device,
@@ -278,6 +278,7 @@ def _create_nwb(
278278
nwb_file, metadata, session_df, video_directory, convert_video
279279
)
280280
add_optogenetics(nwb_file, metadata, device_metadata)
281+
add_optogenetic_epochs(nwb_file, metadata)
281282

282283
if not behavior_only:
283284
add_electrode_groups(

0 commit comments

Comments
 (0)