Skip to content

Commit

Permalink
Fetch boiler from ssv1
Browse files Browse the repository at this point in the history
  • Loading branch information
CBroz1 committed Nov 8, 2023
1 parent 7fd8fc9 commit c6ed616
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 174 deletions.
29 changes: 10 additions & 19 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
{
"editor.formatOnSave": true,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"editor.multiCursorModifier": "ctrlCmd",
"autoDocstring.docstringFormat": "numpy",
"remote.SSH.remoteServerListenOnSocket": true,
"git.confirmSync": false,
"python.analysis.typeCheckingMode": "off",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
},
"isort.args": [
"--profile",
"black"
],
"editor.formatOnSave": true,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"autoDocstring.docstringFormat": "numpy",
"remote.SSH.remoteServerListenOnSocket": true,
"git.confirmSync": false,
"python.analysis.typeCheckingMode": "off",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ test = [
"kachery-cloud",
]
docs = [
"hatch", # Get version from env
"hatch", # Get version from env
"mike", # Docs versioning
"mkdocs", # Docs core
"mkdocs-exclude", # Docs exclude files
Expand Down
13 changes: 13 additions & 0 deletions src/spyglass/spikesorting/imported.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import datajoint as dj
from spyglass.common.common_session import Session

schema = dj.schema("spikesorting_imported")


@schema
class ImportedSpikeSorting(dj.Imported):
definition = """
-> Session
---
object_id: varchar(32)
"""
30 changes: 30 additions & 0 deletions src/spyglass/spikesorting/merge.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import datajoint as dj

from spyglass.spikesorting.v1.curation import CurationV1 # noqa: F401
from spyglass.spikesorting.imported import ImportedSpikeSorting # noqa: F401
from spyglass.utils.dj_merge_tables import _Merge

schema = dj.schema("spikesorting_merge")


@schema
class SpikeSortingOutput(_Merge):
definition = """
merge_id: uuid
---
source: varchar(32)
"""

class CurationV1(dj.Part):
definition = """
-> master
---
-> CurationV1
"""

class ImportedSpikeSorting(dj.Part):
definition = """
-> master
---
-> ImportedSpikeSorting
"""
50 changes: 16 additions & 34 deletions src/spyglass/spikesorting/v1/__init__.py
Original file line number Diff line number Diff line change
@@ -1,39 +1,21 @@
from .curation_figurl import CurationFigurl, CurationFigurlSelection
from .sortingview import SortingviewWorkspace, SortingviewWorkspaceSelection
from .spikesorting_artifact import (
ArtifactDetection,
ArtifactDetectionParameters,
ArtifactDetectionSelection,
ArtifactRemovedIntervalList,
)
from .spikesorting_curation import (
AutomaticCuration,
AutomaticCurationParameters,
AutomaticCurationSelection,
CuratedSpikeSorting,
CuratedSpikeSortingSelection,
Curation,
MetricParameters,
MetricSelection,
QualityMetrics,
UnitInclusionParameters,
WaveformParameters,
Waveforms,
WaveformSelection,
)
from .spikesorting_populator import (
SpikeSortingPipelineParameters,
spikesorting_pipeline_populator,
)
from .spikesorting_recording import (
from .recording import (
SortGroup,
SortInterval,
SpikeSortingPreprocessingParameters,
SpikeSortingRecording,
SpikeSortingRecordingSelection,
SpikeSortingRecording,
)
from .artifact import (
ArtifactDetectionParameters,
ArtifactDetectionSelection,
ArtifactDetection,
)
from .spikesorting_sorting import (
SpikeSorterParameters,
SpikeSorting,
SpikeSortingSelection,
from .sorting import SpikeSorterParameters, SpikeSortingSelection, SpikeSorting
from .curation import CurationV1
from .metric_curation import (
WaveformParameters,
MetricParameters,
MetricCurationParameters,
MetricCurationSelection,
MetricCuration,
)
from .figurl_curation import FigURLCurationSelection, FigURLCuration
Loading

0 comments on commit c6ed616

Please sign in to comment.