-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initialize new module for per-spectra processing
- Loading branch information
1 parent
d91bc59
commit 9cf0ac1
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |