Skip to content

Extend CurationModel to SequentialCuration #4296

@alejoe91

Description

@alejoe91

We can extend the apply_curation to a list of curation steps:

class SequentialCuration(BaseModel):
    curation_steps: List[CurationModel]
  • some validators!!!

Then the apply_curation will be as follows:

def apply_curation(analyzer, curation_or_sequential_curation):
    if isinstance(curation_or_sequential_curation, CurationModel):
        return apply_one_step_curation(analyzer)
    elif isinstance(curation_or_sequential_curation, SequentialCuration):
        analyzer_current = analyzer
        for curation_step in curation_or_sequential_curation.curation_step:
            analyzer_current = apply_one_step_curation(analyzer_current)
        return analyzer_current

The SecuentialCuration will also have a method to generate an (n_spikes, n_steps) matrix representation of the curation steps.

Metadata

Metadata

Labels

curationRelated to curation module

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions