File tree Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 55### Infrastructure
66
77- Add user roles to ` database_settings.py ` . #832
8+ - Fix redundancy in ` waveforms_dir ` #857
89- Revise ` dj_chains ` to permit undirected paths for paths with multiple Merge
910 Tables. #846
1011
Original file line number Diff line number Diff line change 2121import spikeinterface as si
2222import xarray as xr
2323
24- from spyglass .settings import waveform_dir
24+ from spyglass .settings import waveforms_dir
2525from spyglass .utils import logger
2626
2727try :
@@ -157,7 +157,7 @@ def make(self, key):
157157 f'{ key ["curation_id" ]} _clusterless_waveforms'
158158 )
159159 waveform_extractor_path = str (
160- Path (waveform_dir ) / Path (waveform_extractor_name )
160+ Path (waveforms_dir ) / Path (waveform_extractor_name )
161161 )
162162 if os .path .exists (waveform_extractor_path ):
163163 shutil .rmtree (waveform_extractor_path )
Original file line number Diff line number Diff line change @@ -509,10 +509,6 @@ def waveforms_dir(self) -> str:
509509 def temp_dir (self ) -> str :
510510 return self .config .get (self .dir_to_var ("temp" ))
511511
512- @property
513- def waveform_dir (self ) -> str :
514- return self .config .get (self .dir_to_var ("waveform" ))
515-
516512 @property
517513 def video_dir (self ) -> str :
518514 return self .config .get (self .dir_to_var ("video" ))
@@ -559,7 +555,7 @@ def dlc_output_dir(self) -> str:
559555 temp_dir = None
560556 analysis_dir = None
561557 sorting_dir = None
562- waveform_dir = None
558+ waveforms_dir = None
563559 video_dir = None
564560 dlc_project_dir = None
565561 dlc_video_dir = None
@@ -572,7 +568,7 @@ def dlc_output_dir(self) -> str:
572568 temp_dir = sg_config .temp_dir
573569 analysis_dir = sg_config .analysis_dir
574570 sorting_dir = sg_config .sorting_dir
575- waveform_dir = sg_config .waveform_dir
571+ waveforms_dir = sg_config .waveforms_dir
576572 video_dir = sg_config .video_dir
577573 debug_mode = sg_config .debug_mode
578574 test_mode = sg_config .test_mode
Original file line number Diff line number Diff line change 1515
1616from spyglass .common .common_interval import IntervalList
1717from spyglass .common .common_nwbfile import AnalysisNwbfile
18- from spyglass .settings import waveform_dir
18+ from spyglass .settings import waveforms_dir
1919from spyglass .spikesorting .v0 .merged_sorting_extractor import (
2020 MergedSortingExtractor ,
2121)
@@ -331,7 +331,7 @@ def make(self, key):
331331
332332 waveform_extractor_name = self ._get_waveform_extractor_name (key )
333333 key ["waveform_extractor_path" ] = str (
334- Path (waveform_dir ) / Path (waveform_extractor_name )
334+ Path (waveforms_dir ) / Path (waveform_extractor_name )
335335 )
336336 if os .path .exists (key ["waveform_extractor_path" ]):
337337 shutil .rmtree (key ["waveform_extractor_path" ])
@@ -513,7 +513,7 @@ def make(self, key):
513513 qm [metric_name ] = metric
514514 qm_name = self ._get_quality_metrics_name (key )
515515 key ["quality_metrics_path" ] = str (
516- Path (waveform_dir ) / Path (qm_name + ".json" )
516+ Path (waveforms_dir ) / Path (qm_name + ".json" )
517517 )
518518 # save metrics dict as json
519519 logger .info (f"Computed all metrics: { qm } " )
You can’t perform that action at this time.
0 commit comments