File tree Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -890,9 +890,14 @@ def yield_unit_waveforms():
890
890
891
891
def get_spikeglx_meta_filepath (ephys_recording_key ):
892
892
# attempt to retrieve from EphysRecording.EphysFile
893
- spikeglx_meta_filepath = (EphysRecording .EphysFile & ephys_recording_key
894
- & 'file_path LIKE "%.ap.meta"' ).fetch1 ('file_path' )
895
-
893
+ spikeglx_meta_filepath = pathlib .Path (
894
+ (
895
+ EphysRecording .EphysFile
896
+ & ephys_recording_key
897
+ & 'file_path LIKE "%.ap.meta"'
898
+ ).fetch1 ("file_path" )
899
+ )
900
+
896
901
try :
897
902
spikeglx_meta_filepath = find_full_path (get_ephys_root_data_dir (),
898
903
spikeglx_meta_filepath )
Original file line number Diff line number Diff line change @@ -835,8 +835,13 @@ def yield_unit_waveforms():
835
835
836
836
def get_spikeglx_meta_filepath (ephys_recording_key ):
837
837
# attempt to retrieve from EphysRecording.EphysFile
838
- spikeglx_meta_filepath = (EphysRecording .EphysFile & ephys_recording_key
839
- & 'file_path LIKE "%.ap.meta"' ).fetch1 ('file_path' )
838
+ spikeglx_meta_filepath = pathlib .Path (
839
+ (
840
+ EphysRecording .EphysFile
841
+ & ephys_recording_key
842
+ & 'file_path LIKE "%.ap.meta"'
843
+ ).fetch1 ("file_path" )
844
+ )
840
845
841
846
try :
842
847
spikeglx_meta_filepath = find_full_path (get_ephys_root_data_dir (),
Original file line number Diff line number Diff line change @@ -849,8 +849,13 @@ def yield_unit_waveforms():
849
849
850
850
def get_spikeglx_meta_filepath (ephys_recording_key ):
851
851
# attempt to retrieve from EphysRecording.EphysFile
852
- spikeglx_meta_filepath = (EphysRecording .EphysFile & ephys_recording_key
853
- & 'file_path LIKE "%.ap.meta"' ).fetch1 ('file_path' )
852
+ spikeglx_meta_filepath = pathlib .Path (
853
+ (
854
+ EphysRecording .EphysFile
855
+ & ephys_recording_key
856
+ & 'file_path LIKE "%.ap.meta"'
857
+ ).fetch1 ("file_path" )
858
+ )
854
859
855
860
try :
856
861
spikeglx_meta_filepath = find_full_path (get_ephys_root_data_dir (),
You can’t perform that action at this time.
0 commit comments