Skip to content

Commit

Permalink
initialize new module for per-spectra processing
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Oct 25, 2024
1 parent d91bc59 commit 9cf0ac1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
Empty file.
25 changes: 25 additions & 0 deletions src/depiction/tools/process_spectra/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from pydantic import BaseModel

from depiction.tools.correct_baseline.config import BaselineCorrectionConfig
from depiction.tools.filter_peaks.config import FilterPeaksConfig
from depiction.tools.pick_peaks.config import PickPeaksConfig


class ProcessSpectraStepPickPeaks(BaseModel):
pick: PickPeaksConfig


class ProcessSpectraStepRemoveBaseline(BaseModel):
baseline: BaselineCorrectionConfig


class ProcessSpectraStepFilterPeaks(BaseModel):
filter: FilterPeaksConfig


ProcessSpectraStep = ProcessSpectraStepFilterPeaks


class ProcessSpectraConfig(BaseModel):
steps: list[ProcessSpectraStep]
n_jobs: int = 10
6 changes: 6 additions & 0 deletions src/depiction/tools/process_spectra/process.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from depiction.persistence.types import GenericReadFile, GenericWriteFile
from depiction.tools.process_spectra.config import ProcessSpectraConfig


def process_spectra(read_file: GenericReadFile, write_file: GenericWriteFile, config: ProcessSpectraConfig) -> None:
pass

0 comments on commit 9cf0ac1

Please sign in to comment.