Skip to content
Closed
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
36 changes: 36 additions & 0 deletions src/saps/benchmarks/diBELLA2d.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from saps.benchmark import SNAPGenerator, Benchmark


class DiBELLA2dSNAPGenerator(SNAPGenerator):
"""Placeholder SNAP generator for the diBELLA2d benchmark.

The full diBELLA2d dataset generation is not yet implemented.
This class provides the minimal interface required for the benchmark
discovery machinery to succeed without raising import errors.
"""

def __init__(self):
super().__init__()
# The framework expects a ``datasets`` attribute. An empty list is
# sufficient for import-time validation; concrete datasets can be
# added later when the benchmark is fully implemented.
self.datasets = []


class DiBELLA2dBenchmark(Benchmark):
"""Placeholder benchmark for diBELLA2d.

The actual algorithmic implementation is pending. The ``benchmark``
method raises ``NotImplementedError`` to make the missing functionality
explicit while still allowing the module to be imported and the class
to be instantiated.
"""

def __init__(self):
super().__init__()

def benchmark(self, xp, meta, *args, **kwargs):
raise NotImplementedError(
"diBELLA2d benchmark is not yet implemented. "
"Refer to issue #24 for implementation details."
)