Skip to content

Commit 8d3df71

Browse files
committed
standardize slashes
1 parent e992478 commit 8d3df71

File tree

1 file changed

+2
-0
lines changed
  • element_array_ephys/export/nwb

1 file changed

+2
-0
lines changed

element_array_ephys/export/nwb/nwb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ def add_ephys_recording_to_nwb(
339339
relative_path = (
340340
ephys.EphysRecording.EphysFile & ephys_recording_record
341341
).fetch1("file_path")
342+
relative_path = relative_path.replace("\\","/")
342343
file_path = ephys.find_full_path(ephys.get_ephys_root_data_dir(), relative_path)
343344

344345
if ephys_recording_record["acq_software"] == "SpikeGLX":
@@ -466,6 +467,7 @@ def add_ephys_lfp_from_source_to_nwb(
466467
relative_path = (
467468
ephys.EphysRecording.EphysFile & ephys_recording_record
468469
).fetch1("file_path")
470+
relative_path = relative_path.replace("\\","/")
469471
file_path = find_full_path(ephys.get_ephys_root_data_dir(), relative_path)
470472

471473
if ephys_recording_record["acq_software"] == "SpikeGLX":

0 commit comments

Comments
 (0)