Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions winnow/datasets/data_loaders/pointnovo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

from pathlib import Path
from typing import Any, Optional
from typing import Any

from winnow.datasets.calibration_dataset import CalibrationDataset
from winnow.datasets.interfaces import DatasetLoader
Expand All @@ -15,8 +15,22 @@ class PointNovoDatasetLoader(DatasetLoader):
Note: This loader is not yet implemented.
"""

def __init__(
self,
residue_masses: dict[str, float],
residue_remapping: dict[str, str] | None = None,
isotope_error_range: tuple[int, int] = (0, 1),
) -> None:
"""Initialise the loader with the common dataset-loader options.

The loader does not use these options until PointNovo support is implemented,
but defining the initializer makes this a concrete implementation of the
``DatasetLoader`` protocol on Python 3.10.
"""
del residue_masses, residue_remapping, isotope_error_range

def load(
self, *, data_path: Path, predictions_path: Optional[Path] = None, **kwargs: Any
self, *, data_path: Path, predictions_path: Path | None = None, **kwargs: Any
) -> CalibrationDataset:
"""Load a calibration dataset from PointNovo predictions."""
raise NotImplementedError("PointNovoDatasetLoader is not yet implemented")
Loading