Skip to content

Commit

Permalink
Updates from comments by @edeno
Browse files Browse the repository at this point in the history
  • Loading branch information
CBroz1 committed Dec 20, 2023
1 parent 7a7dec9 commit 4a881a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/spyglass/common/common_behav.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,7 @@ def get_abs_path(cls, key: Dict):
nwb_video = nwbf.objects[video_info["video_file_object_id"]]
video_filename = nwb_video.name
# see if the file exists and is stored in the base analysis dir
nwb_video_file_abspath = pathlib.Path(
f"{video_path_obj}/{pathlib.Path(video_filename)}"
)
nwb_video_file_abspath = pathlib.Path(video_path_obj / video_filename)
if nwb_video_file_abspath.exists():
return nwb_video_file_abspath.as_posix()
else:
Expand Down
2 changes: 1 addition & 1 deletion src/spyglass/spikesorting/spikesorting_curation.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def make(self, key):
recording = sip.whiten(recording, dtype="float32")

waveform_extractor_name = self._get_waveform_extractor_name(key)
key["waveform_extractor_pat"] = str(
key["waveform_extractor_path"] = str(
Path(waveform_dir) / Path(waveform_extractor_name)
)
if os.path.exists(key["waveform_extractor_path"]):
Expand Down

0 comments on commit 4a881a0

Please sign in to comment.