Skip to content

Commit

Permalink
See details
Browse files Browse the repository at this point in the history
Edits

- isort to rearrange imports
- replace populate commands projected keys with restriction
- declare variables for dicts that get used mult times
- use list comprehension to add field to dicts when fetched
- above allows use of insert instead of insert1
- replace if len(x) > 0 checks with if x
- wrap comments and docstrings to len 80
- use string template for github url to avoid repeated declaration of str

Further possible improvements

- break long func into mult to avoid complexity and permit piecewise execution
- lookup selection table for defaults to separate out pipeline_params fetch
- defaults are not intuitive - rename in main pipeline?
  • Loading branch information
CBroz1 committed Sep 11, 2023
1 parent 17bd713 commit ecf140f
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 241 deletions.
12 changes: 5 additions & 7 deletions src/spyglass/spikesorting/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from .curation_figurl import CurationFigurl, CurationFigurlSelection
from .sortingview import SortingviewWorkspace, SortingviewWorkspaceSelection
from .spikesorting_artifact import (
ArtifactDetection,
Expand All @@ -20,6 +21,10 @@
Waveforms,
WaveformSelection,
)
from .spikesorting_populator import (
SpikeSortingPipelineParameters,
spikesorting_pipeline_populator,
)
from .spikesorting_recording import (
SortGroup,
SortInterval,
Expand All @@ -32,10 +37,3 @@
SpikeSorting,
SpikeSortingSelection,
)

from .curation_figurl import CurationFigurlSelection, CurationFigurl

from .spikesorting_populator import (
spikesorting_pipeline_populator,
SpikeSortingPipelineParameters,
)
Loading

0 comments on commit ecf140f

Please sign in to comment.