Skip to content

Commit

Permalink
Merge pull request #93 from CBroz1/rk
Browse files Browse the repository at this point in the history
Ensure Path type for get_spikeglx_meta_filepath
  • Loading branch information
sidhulyalkar authored Sep 19, 2022
2 parents 6757ef7 + 0e94252 commit a738ee7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
11 changes: 8 additions & 3 deletions element_array_ephys/ephys_acute.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,9 +890,14 @@ def yield_unit_waveforms():

def get_spikeglx_meta_filepath(ephys_recording_key):
# attempt to retrieve from EphysRecording.EphysFile
spikeglx_meta_filepath = (EphysRecording.EphysFile & ephys_recording_key
& 'file_path LIKE "%.ap.meta"').fetch1('file_path')

spikeglx_meta_filepath = pathlib.Path(
(
EphysRecording.EphysFile
& ephys_recording_key
& 'file_path LIKE "%.ap.meta"'
).fetch1("file_path")
)

try:
spikeglx_meta_filepath = find_full_path(get_ephys_root_data_dir(),
spikeglx_meta_filepath)
Expand Down
9 changes: 7 additions & 2 deletions element_array_ephys/ephys_chronic.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,8 +835,13 @@ def yield_unit_waveforms():

def get_spikeglx_meta_filepath(ephys_recording_key):
# attempt to retrieve from EphysRecording.EphysFile
spikeglx_meta_filepath = (EphysRecording.EphysFile & ephys_recording_key
& 'file_path LIKE "%.ap.meta"').fetch1('file_path')
spikeglx_meta_filepath = pathlib.Path(
(
EphysRecording.EphysFile
& ephys_recording_key
& 'file_path LIKE "%.ap.meta"'
).fetch1("file_path")
)

try:
spikeglx_meta_filepath = find_full_path(get_ephys_root_data_dir(),
Expand Down
9 changes: 7 additions & 2 deletions element_array_ephys/ephys_no_curation.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,13 @@ def yield_unit_waveforms():

def get_spikeglx_meta_filepath(ephys_recording_key):
# attempt to retrieve from EphysRecording.EphysFile
spikeglx_meta_filepath = (EphysRecording.EphysFile & ephys_recording_key
& 'file_path LIKE "%.ap.meta"').fetch1('file_path')
spikeglx_meta_filepath = pathlib.Path(
(
EphysRecording.EphysFile
& ephys_recording_key
& 'file_path LIKE "%.ap.meta"'
).fetch1("file_path")
)

try:
spikeglx_meta_filepath = find_full_path(get_ephys_root_data_dir(),
Expand Down

0 comments on commit a738ee7

Please sign in to comment.